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

Is there a general permission denied page function?

Discussion in 'XenForo Development Discussions' started by Jaxel, Oct 7, 2010.

  1. Jaxel

    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?
  2. Deceptor

    Deceptor Active Member

    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.
  3. Jaxel

    Jaxel Well-Known Member

    BINGO! Thanks Deceptor

    		if (!$perms['view'])
    			return $this->responseNoPermission();

Share This Page