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

Fix and update contextual role expression examples #361

Open
tjerman opened this issue Jan 24, 2023 · 0 comments
Open

Fix and update contextual role expression examples #361

tjerman opened this issue Jan 24, 2023 · 0 comments
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

Comments

@tjerman
Copy link
Member

tjerman commented Jan 24, 2023

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 and resource where the resource represents one of the things the contextual role is evaluated for

@tjerman tjerman added good first issue Good for newcomers help wanted Extra attention is needed trivial Trivial issue that do not require major changes platform-developer-facing The issue is related to platform and application development labels Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

1 participant