Skip to main content
Topic: Show/Hide Menu items conditionally. (Read 1585 times) previous topic - next topic

Show/Hide Menu items conditionally.

Hello,

I've three User Roles in my application and I want to hide certain Menu items based on the role of current logged in User. In order to achieve this, I've two How-To questions...
  • How to get the Role of currently logged-in user?
  • How to hide/show menu items dynamically?

I'm trying it in PHPRad Classic (Laravel + Bootstrap) v5.1.4 of Radsystems.

Awaiting your valuable reply...

Thanks!

R.

Re: Show/Hide Menu items conditionally.

Reply #1
@Ross T.‍ by default phprad hides the menu if the user role does not have permission to that page. All you have to do is assign the permissions to that role and the user will only have access to the menus of those pages. 
This is the wrong place to ask, as this is the forum for PHPRad Classic 2.7.3. Use this Radsystems Forum for Radsysytems Studio questions.