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

Admin Navigation

Discussion in 'XenForo Questions and Support' started by captainanna, Jun 14, 2012.

  1. captainanna

    captainanna Member

    I have set the approve users navigation so that any admin can use it but I get this error whenever they navigate to it

    Error
    You do not have permission to view this page or perform this action.
    I am not sure if there is some sort of dependency that I need to give them as well, any help would be much appreciated.

    EDIT: they can see it in the navigation
     
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Is that a custom nav item you added? With a custom controller and everything? What page is it linking to? What is the URL?

    There are admin permissions for all of the default admin pages. If this is a custom page then you will need to address the permissions in your controller.
     
  3. captainanna

    captainanna Member

    Its part of the main xenforo http://enchantedcraft.net/xenforums/upload/admin.php?users/moderated I want to give them access to use that page but no other so I created another permission for it but it seems to error

    http://i.imgur.com/RVBWf.png
    As you can the required permission is approve users the user has that permission and it shows in their nav bar on the admin pannel but when they click it they get the error
     
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    You probably need to modify this function to assert your new permission:

    XenForo_ControllerAdmin_User::_preDispatch
     

Share This Page