Is there a general permission denied page function?

Jaxel

Well-known member
Is there a configured method for telling the user they don't have the appropriate permissions to view a specific page or process a specific function?
 
If you look at XenForo_ControllerPublic_Error you'll find a method that's similar to vBulletins print_no_permission: actionNoPermission(), it returns a controller response which would need to be passed back to the main application. The primary XenForo_Controller has the method "responseError" for making custom error responses.
 
BINGO! Thanks Deceptor

Code:
		if (!$perms['view'])
		{
			return $this->responseNoPermission();
		}
 
Top Bottom