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

User Permissions

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?