Getting admin permission on the front-end

Steve F

Well-known member
So been fiddling around with this for a bit but I think it is at a point where programming is needed but I'm not sure.

Basically I want to check a users admin permissions on the front-end. I know there is this '{$canAdminUsers}' , but is there others similar for 'Access Development Tools', 'Manage Styles, style properties and templates', ect...?

Is these permissions exposed outside of the ACP?
 
I'm pretty sure it's something like either:

XenForo_Permission::hasAdminPermission();

Or

XenForo_Visitor::getInstance()->hasAdminPermission();
 
Top Bottom