Abp: Only show menu/html element when user has permission

Created on 3 Feb 2020  路  2Comments  路  Source: abpframework/abp

Hello,

Is there any way to show/hide menu items and/or html elements based on the permissions the users has?
For example, if the user doesn't have the permission BookStore_Author_Create then the books list shouldn't be shown to him. Or when the user doesn't have the permission to create a new book, then the Add button shouldn't show.

Currently, when the list page is visited, the error message "You are not authorized" shows. What would be better is to hide the menu item all together.

Thank you!

question

All 2 comments

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hikalkan picture hikalkan  路  3Comments

mehdihadeli picture mehdihadeli  路  3Comments

ugurozturk picture ugurozturk  路  3Comments

vfabregat picture vfabregat  路  3Comments

hikalkan picture hikalkan  路  3Comments