11-01-2016, 12:17 AM
We really made this more complicated than it had to be. Or maybe I just explained it horribly.
I used as a reference.
Basically, on the page, it grabs the permissions of a given user. However, we can tell it to get permissions of the current user by changing the value of to the current users value. In return, it posts the current users permissions, and we use the remove permissions function in a select option format instead, thus allowing the current user only to make accounts with the same permissions it has at maximum.
I'm actually kinda proud of myself
I used
Code:
admin_user.phpBasically, on the
Code:
admin_user.phpCode:
$userIdI'm actually kinda proud of myself


So what I would do in your case is give your Employees general access, also assign this to your Managers in the same category and then provide the Manager permission level with the specific access they require. That way if you have a Kitchen/Hotel Manager swing, you can assign them both permission levels and it would permit them access to the specific pages they require