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:

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?
 
Top Bottom