In an educational application, the Get Authorised Menu Items action is used to allow administrators to access all menu items, while standard users can only access menus within their permissions. This can be done through a button that is triggered to dynamically display menu options based on user permissions.
Adding the Show Authorised Menu Items Action
Enter the UI Design module and drag and drop a Button element from the Elements panel on the left side.
In the Properties panel, enter a phrase such as ‘Show Authorised Menu’ in the Label section of the button.
Select the relevant button and add the OnClick → Navigation → Get Authorised Menu Items action from the + ADD ACTION menu.
This action will list the menu items according to the user's permissions and only show the menu items that the user is authorised to access.
When the button is clicked, only the authorised menu items assigned to the user are dynamically listed. For example, an administrator can access all menu items, while a standard user can only view the menus they are authorised to access.
Action Workflow:
Administrator Access: The administrator can view all menu items by clicking the button.
Standard User Access: A standard user can only see menu items they have permission to access.
Users can only see the menu options they are authorised to access, thus hiding unnecessary or inaccessible areas. This both enhances security and simplifies the user experience.