Change WordPress user roles and capabilities › Forums › Give user access to plugin – how to › Change plugin capability
- This topic has 29 replies, 2 voices, and was last updated 5 years, 8 months ago by Vladimir.
-
AuthorPosts
-
17/01/2019 at 17:06 #5402armelParticipant
Hello, there are some plugins I don’t want to show in the menu for certain users but since this plugins have manage_options capabilities, they will show anyway.
If I remove manage_option capability to that user, some plugins I want to show will be removed too.
So how to cope against this? I thought about changing plugin capability in plugin file but this will be overriden after update.
Is there a better way to solve this?
18/01/2019 at 01:27 #5403VladimirKeymasterHi,
Look at the “Admin menu access” add-on developed especially for this purpose. May be it will be suitable for you.
19/01/2019 at 10:33 #5409armelParticipantHello,
I currently use the ‘admin menu access’ add on but like I said if a plugin has manage_options capability it will show even if I remove it from the list.
20/01/2019 at 02:04 #5413VladimirKeymasterHi,
Let me test this. Show plugin download link if it’s free or share its .zip via DropBox or GoogleDrive. I use paid product received from client for the testing purpose only.
11/02/2019 at 13:43 #5450armelParticipant11/02/2019 at 14:27 #5451armelParticipantThe video below described in details the issue i’m facing.
Using the admin menu access add on doesn’t block admin menu items if they have manage_option capability. how can I fix this?https://www.useloom.com/share/bc621000067e47d8b3872e134071bfd4
11/02/2019 at 14:30 #5452VladimirKeymasterI recorded short video in parallel with you. I shows that ‘Admin menu access’ add-on blocks menu item for ‘tawk.to’ plugin included into the list you shared.
I will look your video now.
11/02/2019 at 14:38 #5453VladimirKeymaster1st, it’s not enough to block just top level menu item if you wish to block full menu. You have to mark as blocked all unneeded submenu items too.
2nd, be sure that you test admin menu access at the same subsite where you made restrictions for the role. “Apply to all subsites” option from the main site works for the roles only. It does not replicate add-ons data. You have to use “Update Network” button from the “Network admin->Users->User Role Editor” page for this purpose.Do you have active some other plugin related to admin menu management? Like “Admin menu editor” or similar? It’s possible to get conflict in this case.
11/02/2019 at 14:46 #5454armelParticipantHello Vladimir,
I tried the above but it’s not working. I do not have a similar plugin activated either.
https://www.useloom.com/share/0f37bc2d8ee9448ab3f4163d4f7eec2e
11/02/2019 at 14:55 #5455VladimirKeymasterI see. Is it possible for you to share with me a copy of database and files (themes and plugins folders only)?
I would try to setup and analyse the issue at my local development environment.If Yes, share files with support [at-sign] role-editor.com via DropBox or similar or provide access to FTP and MyPhpAdmin in order I can make needed copies myself.
11/02/2019 at 15:07 #5456armelParticipantyes, i just sent you an email with required info
11/02/2019 at 15:20 #5457VladimirKeymasterThank you.
I will not touch any settings at the live site. I will contact you with the results of my investigation.12/02/2019 at 14:15 #5459armelParticipantOk thanks Vladimir. Any update so far?
12/02/2019 at 14:20 #5460VladimirKeymasterNot yet. I will try to find a solution tomorrow.
13/02/2019 at 16:08 #5462armelParticipantok thanks! any update now?
-
AuthorPosts
- You must be logged in to reply to this topic.