• Tanner

    (@tannerchung)


    I’ve made sure AceIDE is supposed to show up in the admin menu but it doesn’t appear and possibly due to some permissions on this custom user role. Can you tell me what capabilities must be enabled for the user in order for them to access and use AceIDE?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author shanept

    (@shanept)

    Hi Tanner,

    Great question. Let me outline the logic behind determining whether one key access the menu.

    First check:
    A test for the value of the “DISALLOW_FILE_EDIT” constant. If this is true, the editor can not be used. However this may be overwritten with the “aceide_override_disallow_file_edit” filter.

    Second check:
    Simple referrer check.

    Third check:
    If the site is multisite, the user must have the “manage_network_themes” capability. Otherwise, they require the “edit_plugins” capability.

    By default, these capabilities are assigned to an administrator, or in the case of a multisite it is a super admin.

    Thread Starter Tanner

    (@tannerchung)

    Thanks Shane,

    I made sure the User Role has edit_plugins, manage_network_themes, and manage_network_plugins capabilities but the menu is still being hidden for this User Role. Any other possibilities?

    Plugin Author shanept

    (@shanept)

    Hey Tanner,

    Have a look in your wp-config.php for the following:

    define(‘DISALLOW_FILE_EDIT”, true);

    If this appears, it is the reason for the menu item not appearing.

    Otherwise, I can only imagine this is a bizarre bug.

    Thread Starter Tanner

    (@tannerchung)

    Nope, it’s not in there. Do I need to provide you access to a server that displays this behavior?

    Plugin Author shanept

    (@shanept)

    I would definitely be interested in looking into this further. If you could facilitate this, I would definitely appreciate it.

    Thread Starter Tanner

    (@tannerchung)

    @shanept

    I just carved out some time to clone the entire site. Did you want to take a look? Please let me know what email to provide you an account for.

    Plugin Author shanept

    (@shanept)

    Hi Tanner,

    That’s wonderful! Thank you

    me *at* shane *dot* pt

    I look forward to hearing from you

    Thread Starter Tanner

    (@tannerchung)

    Hey Shane, I just sent you an email with a superadmin account to the staging site and provided instructions on how to see the issue.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘What permissions must the user have in order to access AceIDE?’ is closed to new replies.