Fix and update contextual role expression examples #361
Labels
good first issue
Good for newcomers
help wanted
Extra attention is needed
platform-developer-facing
The issue is related to platform and application development
trivial
Trivial issue that do not require major changes
The documented examples for contextual role expression examples are no longer ok; they changed a while back and we never updated the examples.
Refer to the provision files for how they should be https://github.com/cortezaproject/corteza/blob/2022.9.x/server/provision/000_base/roles.yaml#L27
Document to address https://docs.cortezaproject.org/corteza-docs/2022.9/integrator-guide/security-model/examples/examples-contextual.html
In essence the issue is only in the way variables/parameters are defined and accessed. There are only two variables at the moment --
userID
andresource
where the resource represents one of the things the contextual role is evaluated forThe text was updated successfully, but these errors were encountered: