• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Getting admin permission on the front-end

Steve F

Well-known member
#1
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?
 

Chris D

XenForo developer
Staff member
#2
I'm pretty sure it's something like either:

XenForo_Permission::hasAdminPermission();

Or

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