A
A
Adel Khalitov2019-04-18 00:08:33
Angular
Adel Khalitov, 2019-04-18 00:08:33

Roles and permissions?

There is a project on angular and nodejs (express - passport) The
question is the following.
I have a menu where there are links to pages, conditionally:
Calculator - when clicked, it goes to the www.somedomain/calculate page, when going to this page, an http request is made to the node, some information from the database is conditionally pulled up.
And the profile - when you go to the page, the same actions are performed as when you go to the calculator page.
There are 2 user groups: administrators and users.
Of course, express-acl or acl will block access to http requests for the user, but the link to this page of the calculator will still hang.
How can I hide calculator links from the menu for the user?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question