How to show or hide buttons based on permission groups

更新时间:
复制 MD 格式

You can use the permission group component to show or hide buttons.

Note

Permission information is not available in design mode. You must publish the application to see the result.

Key code

!mobi.currentUser.groups.map((name)=>name.name).includes("")

Permission configuration

Page configuration

  • Controlling the visibility of the navigation bar

  • Controlling permissions for specific buttons

Page access permissions