Algolia admin menu visible for subscriber role
-
Hi,
your plugin is visible in the admin menu even for lower user roles with only read capability.
-
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?
Hi, yes I have created custom roles, but this is showing to the WP subscriber role. Actually it shows for all roles. π
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.
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.
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_pageoradd_submenu_pageis requiring themanage_optionscapability, 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.
Any new headway here?
Hey @uprisen just wanted to check in again.
Hi Michael, thanks for checking in!
Yes, the issue is still present. Currently hiding the meny with css.
Noted but also note that we don’t have any answers on our end for why it’s happening for you
@uprisen Did you ever get this figured out?
The topic ‘Algolia admin menu visible for subscriber role’ is closed to new replies.