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

ChangYinShung picture ChangYinShung  路  3Comments

zsanhong picture zsanhong  路  3Comments

wakuflair picture wakuflair  路  3Comments

SmallShrimp picture SmallShrimp  路  3Comments