Access admin as super administrator
Using the PowerCMS security as a starting point, I am adding a little bit of further complexity to my site.
I have modified the users_login.php page to take the user data from a members table and added a couple of new session variables to allow for the new user levels I have created.
(I have left the super administrator logic in place, and the wa_users table is still accessed for this role).
It all seems to be working OK, except when trying to log in as a super Administrator, and I can’t figure out how super administrator accesses the admin_cms home page.
The original admin_cms/index.php page has the following rule
but super administrators can still access the page, even though they are not in the administrators group.
In order to allow for my additional userlevels, I created a new group called All Admin Groups which allow access to the admin home page if the userlevel is either 1 or 2. (multi group administrator or administrator)
This seems to work OK, but I cannot access the page as a super administrator using this rule