• 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?

Jaxel

Well-known member
#1
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?
 

Deceptor

Active member
#2
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.