• Resolved Rowland

    (@jollyroger99)


    Can you please advise how we can remove the Maintenance from being listed in the sidebar menu for non-admins (‘role’ <> ‘Administrator’), i have read other posts and yes i have checked the users are NOT admins but they still see Maintenance and can amend its settings and turn it on/off.

    thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Alexandru Tapuleasa

    (@talextech)

    I hava double checked and only users with the manage_options capability can edit Mainenance settings. Normally those are Administrators but if you have customized your user roles, others can have manage_options capability as well.

    Thread Starter Rowland

    (@jollyroger99)

    Thank you for your reply.

    yes we have several people who can manage options but only one Administrator whom should be able to engage the maintenance mode.

    Can you advise the slug to we can look at some code of our own to remove it from the menu please.

    thanks

    Plugin Author Alexandru Tapuleasa

    (@talextech)

    Well, the menu page is added in maintenance/includes/admin.php line 7. Normally that needs a capability, not a user role, but while deprecated it still supports roles so you can try changing manage_options to administrator.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.