I’m working on a control panel that I want to show SuperAdmin’s a full set of features but all other member levels a limited set.
I’m testing against $this->EE->session->userdata[‘group_id’] and when the group ID === ‘1’, I assume the user is a SuperAdmin. This works, but it feels wrong to me. I can’t guarantee that group_id of 1 is always the SuperAdmin, I think.
Can anyone point me to a better solution?
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.