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

[BE] User distinction in the templates and js #4

Closed
nicolaslara opened this issue Apr 17, 2018 · 1 comment
Closed

[BE] User distinction in the templates and js #4

nicolaslara opened this issue Apr 17, 2018 · 1 comment
Assignees
Labels
Dev Work Requires development work beyond styling

Comments

@nicolaslara
Copy link
Contributor

We need to provide a way to know which user role is active so we can adapt the templates accordingly

Required by:

@nicolaslara nicolaslara self-assigned this Apr 17, 2018
@nicolaslara nicolaslara added the Dev Work Requires development work beyond styling label Apr 17, 2018
@nicolaslara
Copy link
Contributor Author

@mtrythall We now have the functions {{ is_admin }}, {{ is_editor }}, {{ is_viewer }} available in the templates so we can customize them based on the roles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dev Work Requires development work beyond styling
Projects
None yet
Development

No branches or pull requests

2 participants