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

permissions documentation expansion #288

Open
notebk opened this issue Jun 27, 2020 · 0 comments
Open

permissions documentation expansion #288

notebk opened this issue Jun 27, 2020 · 0 comments

Comments

@notebk
Copy link
Contributor

notebk commented Jun 27, 2020

Expanding Permissions Documentation

The documentation has a section where it discusses req.user._permissions but it's in the module and template section and not in the permissions section. I think it makes sense to include it in the permissions section so it's easier to find.

Proposed solution

after the section "Checking permissions in your own code" I would add this:

To check for permissions in templates with nunjucks, use data.user._permissions, an object, with boolean properties for permissions (e.g., admin: true or simply {} if there is no user).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant