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

deny to se the create route menu to admin user #17

Closed
wants to merge 5 commits into from
Closed

Conversation

dbistuer
Copy link
Contributor

No description provided.

Copy link

netlify bot commented Nov 28, 2023

Deploy Preview for myroutes-softarch ready!

Name Link
🔨 Latest commit 16cf531
🔍 Latest deploy log https://app.netlify.com/sites/myroutes-softarch/deploys/6568b838167b8f000863174e
😎 Deploy Preview https://deploy-preview-17--myroutes-softarch.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rogargon
Copy link
Member

rogargon commented Nov 28, 2023

First, please, update the branch as it is out-of-date with the base branch main.

Then, to fully block admins from creating Routes, beyond hiding the menu option it is possible to add a Guard to the route. You can use as inspiration:
https://github.com/UdL-EPS-SoftArch/mycircular/blob/main/src/app/login-basic/adminLoggedIn.guard.ts

However, note that this guard should do the reverse, to check that the user is not in the role Admin.

@dbistuer dbistuer closed this Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants