Skip to main content
Topic: Role Based Mult Dashboard (Read 1991 times) previous topic - next topic

Role Based Mult Dashboard

I  have had an issue with my role based dashboards I designed not displaying.  So I looked at the HomeController.php file and the function index() is using the USER_ROLE to load  the proper dashboard.  But it's not writing the role_id integer field but is writing the role_name field.

This is what phprad is writing to the file
if(strtolower(USER_ROLE) == 'user')

but it should be
if(strtolower(USER_ROLE) == 2)

If I display the USER_ROLE variable on the dashboard, it's showing the number 2 as expected.


Re: Role Based Mult Dashboard

Reply #2
@willvin ,

Yes, I'm using the dynamic roles..  Everything involving roles and permissions is working fine for me but this..

Here is roles screen.

https://imgur.com/LtHW9zN

Here is the database

https://imgur.com/4d1g8RE

* please note I tried to upload these images with the file upload and your server says the upload directory is full.