-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Lisää käyttöliittymään tuki uusille auditlokimerkinnöille;
Tuo tieto MyData-käytöstä backendistä datan mukana, äläkä tee päätöstä tästä organisaatio-oidin perusteella vasta frontendissä. Näin mukaan saadaan tietoa myös OAuth2-rajapinnan kautta tehdyistä datan katseluista, joissa organisaatiot ovat moninaisempia. Näytä myös suoritusjakolinkkien anonyymit käyttökerrat.
- Loading branch information
1 parent
b9a5293
commit f3e2395
Showing
12 changed files
with
63 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
import t from 'util/translate' | ||
|
||
import permissionsMap from 'Resources/mapping/usagePermissionDescriptions' | ||
|
||
export const getTranslatedUsagePermissionDescription = organizationOid => { | ||
const permission = permissionsMap[organizationOid] || permissionsMap.default | ||
export const getTranslatedUsagePermissionDescription = (isMyDataUse, isJakolinkkiUse) => { | ||
const permission = (isMyDataUse && isJakolinkkiUse) | ||
? 'Oma Opintopolku -palvelussa luomiesi jakolinkkien käyttökerrat' | ||
: isMyDataUse | ||
? 'Olet antanut tälle palvelutarjoajalle luvan käyttää tietojasi.' | ||
: 'Lakiin perustuva tiedonkäyttölupa.' | ||
return t(permission) | ||
} | ||
|
||
export const isMydataPartner = organizationOid => { | ||
return Boolean(permissionsMap[organizationOid]) | ||
} |