1. 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

Discussion in 'XenForo Development Discussions' started by Steve F, May 18, 2014.

  1. Steve F

    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?
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    I'm pretty sure it's something like either:

    XenForo_Permission::hasAdminPermission();

    Or

    XenForo_Visitor::getInstance()->hasAdminPermission();
     
    Steve F likes this.

Share This Page