This support ticket is created Il y a 8 années et 5 mois. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.
I am trying to: Let a custom role "Member Manager" promote these roles "Pending Member" to "Qualified Member"
But access only gives me the option to give the "Member Manager" the ability to promote. So they can promote a "Qualified Member" to "Shop Manager" or "Editor" by mistake. I want to be able to block that so they can only promote "Pending Member" to "Qualified Member"
Unfortunately this is not something that can be achieved by using our toolset plugins.
Our plugins do not have control over such small details on the user roles. If something like this is to be done, it would require some amount of custom work.
Such custom work is out of the scope of our support forum 🙁
What I recommend that you do is to get in touch with one of our certified partners who specializes in custom development.
Really? So when developing a plugin called Access nobody thought to not give people the ability to give too much access to the site. Excuse my sarcastic remark but I couldn't resist. I'll post my custom coded solution here once it's done.
The reasoning behind this is that something like this is not supported by the wordpress API.
If you take a look at the roles documentation below you will notice that they do not have a function that supports giving capabilities to roles to adjust another users roles for your specific use case. https://codex.wordpress.org/Roles_and_Capabilities
User roles are also defined in levels. At level 8 or above a user gains access to manage another user's role and they are able to see all the roles below them. Level 8 and above are essentially administrators.
Our Access plugin is bounded by what the wordpress API provides. To go outside of the wordpress API would require a hacked solution which we cannot provide 🙁
Please let me know if I was able to adequately explain this to you.
Yes, but based on https://codex.wordpress.org/Roles_and_Capabilities the role member manager that I set up should only be able to govern subscribers, guests and my 2 custom roles but it can make roles above it's level of 3 which it should not be able to do.
Either way I'm going to start on a custom solution.
I believe only admins of level 8 or above can edit user roles. So in order for the user to be able to manage roles of other users then they will need to be at level 8 or above.
If you go to our access plugin and scroll down. Here you can create your custom user roles.
After creating the role you are then given the open to "Change Level" once you click that you will then be given the option to adjust the user role level from 0-10. See screenshot.