From 70e74bbb1ca98dde7f396fb3ac6440349ad6a2db Mon Sep 17 00:00:00 2001 From: skamensky Date: Sun, 5 Feb 2023 15:21:38 +0200 Subject: [PATCH] Update contextual roles exammples to be consistent Update contextual roles exammples to be consistent with reference https://docs.cortezaproject.org/corteza-docs/2022.9/integrator-guide/security-model/references/contextual-role-parameters.html --- .../security-model/examples/examples-contextual.adoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/integrator-guide/pages/security-model/examples/examples-contextual.adoc b/src/modules/integrator-guide/pages/security-model/examples/examples-contextual.adoc index f2747b52..aaf7f03c 100644 --- a/src/modules/integrator-guide/pages/security-model/examples/examples-contextual.adoc +++ b/src/modules/integrator-guide/pages/security-model/examples/examples-contextual.adoc @@ -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 @@ -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 @@ -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 @@ -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 ---- |===