Has permission to access a route #3236
Unanswered
frangambin1
asked this question in
Help
Replies: 1 comment 2 replies
-
As per my knowledge, you don't need to handle permissions here. You can simply apply a middleware, and there you can define your restriction logic. I hope this helps. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am currently a Drupal developer and a week ago I found your framework and I wanted to congratulate you on your enormous work.
Thanks to this framework I can dock or make a structure similar to Drupal, developing by modules.
I have two small doubts, one of them resolved since, since the development of internationalization is pending in version 5 of Adonis JS. (Seen on the trello board)
The question is ... how can I check if a user has access to a route.
I describe the scenario:
I have a route where I specify the assigned roles, I attach a screenshot.
In the .edge template I generate a path that points to that address (example.view) but I only want to show the link in html format if the authenticated user has access permission.
I hope I have explained myself well.
Many thanks.
Beta Was this translation helpful? Give feedback.
All reactions