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

Check role #215

Open
Tracked by #196
jpaulet opened this issue Aug 20, 2024 · 0 comments
Open
Tracked by #196

Check role #215

jpaulet opened this issue Aug 20, 2024 · 0 comments

Comments

@jpaulet
Copy link
Member

jpaulet commented Aug 20, 2024

As Vocdoni, we need to ensure that only users with the appropriate admin role can access certain sensitive pages, such as those for inviting new admins or creating new processes.

To achieve this, we require a function that verifies the role of the currently logged-in user and checks if they have the necessary permissions to access the requested page. If the user does not have the required permissions, a "No permissions" modal should be displayed to prevent unauthorized access.

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