• Resolved uprisen

    (@uprisen)


    Hi,

    your plugin is visible in the admin menu even for lower user roles with only read capability.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi,

    I’m not managing to recreate. I’ve tested subscriber, contributor, and author so far, and none of them were shown the “Algolia Search” admin menu when logged in to the dashboard.

    Just in case it’s contributing somehow, have you done any custom roles or capabilities customizations?

    Thread Starter uprisen

    (@uprisen)

    Hi, yes I have created custom roles, but this is showing to the WP subscriber role. Actually it shows for all roles. πŸ™‚

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Do you have a staging environment or anything else like that where you could confirm if it still happens without the custom roles/capabilities applied?

    As is, it’s feeling like a misconfiguration there than anything on our end, especially since this is the first time I’ve seen this issue reported in general.

    Thread Starter uprisen

    (@uprisen)

    I’m using the Members plugin to create the custom roles so the code should be alright but something peculiar might be going on.

    I disabled the plugin but the custom user roles still remain, and assigned the to the users. Perhaps this is standard behavior though.

    The Loco translate plugin also adds a custom “Translator” role.

    I disabled both plugins, but since the custom roles remain it doesn’t really help.

    One thing I notice though is that other plugins that add their links in the admin menu do get removed on lower user roles. Only Algolia stays.

    It stays in the admin menu but when clicking on the link it shows the “Sorry, you are not allowed to access this page.” error message. So there the cap is working. Just for the menu part it is not.

    Hope this info helps to solve the issue.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Capabilities and whatnot get saved in the options table, so disabling the plugin alone isn’t enough.

    That said, I don’t know what to tell you, unless you’re able to export all the customized roles/capabilities so that I could try and test the imported settings into a test install.

    I’ve checked the plugin code any anywhere that uses add_menu_page or add_submenu_page is requiring the manage_options capability, which is pretty high.

    Only alternative answer I can think of is if it’s perhaps a menu item not being added by our plugin, but other code in the install, perhaps by some custom code or a different Algolia based plugin.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Any new headway here?

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hey @uprisen just wanted to check in again.

    Thread Starter uprisen

    (@uprisen)

    Hi Michael, thanks for checking in!

    Yes, the issue is still present. Currently hiding the meny with css.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Noted but also note that we don’t have any answers on our end for why it’s happening for you

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    @uprisen Did you ever get this figured out?

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Algolia admin menu visible for subscriber role’ is closed to new replies.