Concept - Dynamic web menu

Asked

Viewed 51 times

1

I am idealizing a personal project and I am in doubt about best practices.

For a WEB system with access control, which of the following options, in your opinion, is the most ideal?

1 - Assemble a static menu, with all the options already created, read the access information of the user of the bank, send to the form on the first access and hide the menus that the same does not have access?

2 - Leave a Holder isolated to the menu, read in the database the menus that the user has access and then assemble the access structure and return in the Holder?

Of course, these are the ideas I’ve had, possibly not the best and not the most correct. In that case, would anyone know how to tell me a good alternative ? Some source of resources/examples will also be welcome.

Thank you!

  • 1

    I think a simple ng-if="usuario.acesso == 1" would already solve. Another interesting option would be the use of tokens.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.