Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedHamouGisaia committed Jan 2, 2025
1 parent 0b0e8e1 commit 30f1cb1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,13 @@ static boolean isReaderOnData(IdentityParam idp, Data data) {
return isPublic(data) ||
(
!idp.isAnonymous &&
idp.organisation.contains(data.getDocOrganization()) && /** Always true in case of an KeyCloak Policy inforcer, as idp and doc organisations are both empty strings "". */
idp.organisation.contains(data.getDocOrganization()) && /** Always true in case of a KeyCloak Policy enforcer, as idp and doc organisations are both empty strings "". */
(data.getDocOwner().equals(idp.userId) || intersect(idp.groups, data.getDocReaders()))
);
}

/**
* A user can read data if:
* A user can write data if:
* User is authenticated
* AND
* User belongs to the doc's organisation in IAM mode
Expand All @@ -136,7 +136,7 @@ static boolean isReaderOnData(IdentityParam idp, Data data) {
*/
static boolean isWriterOnData(IdentityParam idp, Data data) {
return !idp.isAnonymous &&
idp.organisation.contains(data.getDocOrganization()) && /** Always true in case of an KeyCloak Policy inforcer, as idp and doc organisations are both empty strings "". */
idp.organisation.contains(data.getDocOrganization()) && /** Always true in case of a KeyCloak Policy enforcer, as idp and doc organisations are both empty strings "". */
(data.getDocOwner().equals(idp.userId)
|| intersect(idp.groups, data.getDocWriters()));
}
Expand Down

0 comments on commit 30f1cb1

Please sign in to comment.