Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update contextual roles exammples to be consistent #364

Open
wants to merge 1 commit into
base: 2022.9.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Assign this role when the current user is the resource owner.

[source]
----
subjectID == ownerID
userID == ownerID
----

| Resource owner but not the creator
Expand All @@ -20,7 +20,7 @@ Assign this role when the current user is the resource owner but not the origina

[source]
----
subjectID == ownerID && subjectID != creatorID
userID == ownerID && userID != creatorID
----

| Mentioned in the multi-value module field
Expand All @@ -29,7 +29,7 @@ Assign this role when the current user is mentioned in the `editor` multi-value

[source]
----
has(record.values.editor, subjectID)
has(resource.values.editor, userID)
----

| Record owner with a specific record state
Expand All @@ -38,7 +38,7 @@ Assign this role when the current user is the record owner and the value of the

[source]
----
subjectID == ownerID && !record.values.published
userID == ownerID && !resource.values.published
----

|===