• 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
#1
I'm attempting to get the current user's account permissions but it's not working, this is the code I have:

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