How do I redirect or show an error message on a page available only to a user logged into the manager with admin privileges?
Mostly harmless.
-
☆ A M B ☆
- 24,524 Posts
Create a snippet that checks the SESSION. The value you want to look for is $_SESSION[’mgrRole’]=1 (or whatever role you want to filter for)
-
☆ A M B ☆
- 24,524 Posts
I was not able to find an API function for determining the role of the user. If you have a number of "Administrator" users (role 1), which one would determine if the user has that role?
Thanks - worked perfectly.
Mostly harmless.