$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>user roles - solution to prevent specific admins from altering site contents|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

user roles - solution to prevent specific admins from altering site contents

matteradmin9PV0评论

I wonder if there is a solution already present that will restrict even the top level admins that I select from doing things such as installing plugins, disabling plugins, etc. that an admin normally has access to.

I want to ensure that my team doesn't ever try to do anything on our testing or production environments that they should only be doing on a dev environment. Is there anything like this?

I wonder if there is a solution already present that will restrict even the top level admins that I select from doing things such as installing plugins, disabling plugins, etc. that an admin normally has access to.

I want to ensure that my team doesn't ever try to do anything on our testing or production environments that they should only be doing on a dev environment. Is there anything like this?

Share Improve this question asked Jul 29, 2013 at 18:14 Jared EitnierJared Eitnier 1052 silver badges10 bronze badges 1
  • 1 Sorry, but is not simpler change the role to something else than administrators for ones that have not to be administrator? You can create a custom role with capabilities you want and assign this role to users. – gmazzap Commented Jul 29, 2013 at 18:20
Add a comment  | 

2 Answers 2

Reset to default 1

Yes, I use the Members plugin on a few projects where I need to customize or specify certain permissions.

Your workflow would be

  • Create a new Role (named something like "Partial Admin" or whatever you'd like to name these people.
  • Add those people to this role (removing them from the Administrator role).
  • Edit the role permissions (for example, you would add or remove specific permissions for that role such as "Activate Plugins").

They get fairly specific, but it's easy to use, and I've not really run into any situations where that plugin couldn't do the job.

Have fun!

You can use a plugin like WP Admin UI to handle restricting access to certain user roles. In the WP Admin UI plugin, you can also assign "client admins" that have Admin rights but you can control exactly what they see.

Change the Login Screen, Remove/Reorder the Admin Menus, Show/Hide Plugin Access, Remove Unwanted MetaBoxes, Remove items from the Top Admin Bar, Restrict/Enable Editor Functions based on role. And, it plays well with other plugins in my experience.

This means if you were using a plugin like White-Label CMS to fully customize your backend to show the businesses own branding and had a client that wanted admin rights, you can set WP to give them rights while also restricting certain elements & hiding the WordPress Update notifications, removing all panels on the welcome dashboard and replacing them with your own, or even add your own logos on the header & footer panels in the back end.

I hope this helps.

Post a comment

comment list (0)

  1. No comments so far