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

User Permissions

Discussion in 'XenForo Development Discussions' started by Daniel Hood, Jul 5, 2013.

  1. Daniel Hood

    Daniel Hood Well-Known Member

    I'm attempting to get the current user's account permissions but it's not working, this is the code I have:

    $this->_visitor = XenForo_Visitor::getInstance();
    $this->perms = $this->_visitor->getPermissions();
    prints out the permission settings for the unregistered group even though I'm logged into an administrator account. Any ideas why?
  2. Daniel Hood

    Daniel Hood Well-Known Member

    Fixed, for future reference use _preDispatch

Share This Page