Forum Replies Created
-
AuthorPosts
-
23/07/2017 at 00:51 in reply to: Remove superadmin role from the “change role to” menu in user listing #4009
Vladimir
KeymasterCan you show the screeshots what critical role is available to users with ‘administrator’ role, but should not be?
What do you name ‘superadmin’ role?
Did you allow to single site admin access to the network admin like manage_network_options, manage_network_users?22/07/2017 at 10:22 in reply to: Remove superadmin role from the “change role to” menu in user listing #4007Vladimir
KeymasterWordPress built-in ‘administrator’ role is hidden from any drop-down list for single site administrators (without superadmin privilege) by default.
If you wish to exclude another role(s) from access of user with ‘list_users’, ‘edit_users’ capabilities you can use “Block other roles access” add-on.
20/07/2017 at 02:09 in reply to: Grant restricted users access to update other restricted users media uploads #3999Vladimir
KeymasterHi,
Does such user see an item uploaded by other user in Media Library but just do not have ‘edit’ link? Does such user have ‘edit_others_posts’ capability?
Vladimir
KeymasterI confirm that all the user roles that you created will remain and show up in the pro version with the permissions still intact. You can create then new roles as usual with Pro version. Ads will be removed. When you activate add-on, like “Admin menu access” at “Settings->User Role Editor->Additonal Modules” tab you will see at toolbar a new button (e.g. “Admin Menu”) which belongs to that add-on.
Vladimir
KeymasterYes – in the both questions.
When I write about URE’s settings I mean only options available at the “Settings->User Role Editor” page.
Changes made to the user roles, or users permissions are not revertible. Any updates to the roles or users permissions you made with URE are permanent and do not depend from URE plugin activation/deactivation, deletion.
Vladimir
KeymasterIn case you have a free version of User Role Editor installed:
Pro version includes its own copy of a free version (or the core of a User Role Editor). So you should deactivate free version and can remove it before installing of a Pro version.
The only thing that you should remember is that both versions (free and Pro) use the same place to store their settings data.
So if you delete free version via WordPress Plugins Delete link, plugin will delete automatically its settings data.
You will have to configure User Role Editor Pro Settings again after that.
Right decision in this case is to delete free version folder (user-role-editor) via FTP, not via WordPress.Vladimir
KeymasterHi Shweta,
This feature is not supported, but it’s interesting/useful enough to realize in a future.
When someone assign new role to a user via WordPress UI: add new user or edit user profile pages, WP_User::add_role() and WP_User::set_role() methods are used. These methods fire hooks:
– add_user_role;
– set_user_role.User Role Editor does not fire any custom action when assigns to a user new roles. It uses the same WP_User::add_role() though, so it’s possible to use ‘add_user_role’ hook also.
Vladimir
KeymasterOK. Good that you can find a solution for this problem. Yes, ‘not enough memory’ could be a problem.
Vladimir
KeymasterThis bug was fixed with core (free) version 4.35.1 release and Pro version 4.35.2.
Vladimir
KeymasterThank you for a patience and desire to help in resolving this issue.
I added “Duplicate Post” to the list of active plugins, but still did not get a described error.
We can proceed according to one of these variants:
1) you send me admin credentials for your site, I install backup plugin, create and download a copy of your site to install and work with it at my local development environment. It will be difficult to realize, if your data is too large (>100 Mb).2) you create a copy of all files except wp-content/uploads folder and copy of database without wp_users, wp_usermeta, wp_posts, wp_postmeta tables and share them with me via DropBox or similar service. This way you will not open access to any critical or “copyrighted” information if you have any.
Of course I guarantee you a non disclosure of any information and use your files and data for the investigation purpose only.
Vladimir
KeymasterThanks. I confirm a bug. I will fix it.
Vladimir
KeymasterSome details:
Users which had deleted role (e.g. ‘role_1’) on other sites will be shown by WordPress with role ‘None’. If you look at such user custom capabilities you will see ‘role_1’ between them though. If WordPress does not find some permission ID between roles, it counts that it’s a custom capability directly assigned to a user.
So if do not delete such capability from a user, user will get it as a role back in case a role with same ID will be added to a site later.
It’s a current state. I see that some enhancement are desired here.
Vladimir
KeymasterOK. We made a step forward: 3 plugins are involved somehow.
You can saw at demo video – I activated all available add-ons at URE Settings.
I activated Custom Post Type UI plugin and re-tested an issue with my own test settings and data of course. There is no JavaScript or AJAX error when I open ‘Post Grid’ element for editing.Can you repeat an issue at the site copy with a test database, which you can share? I mean I can download than the files and database data and easy reproduce a problem at my development environment in order to analyse it and offer a solution.
Vladimir
KeymasterUser Role Editor does nothing if you see this error message. URE shows this message in 2 cases:
1) invalid user ID in the list of users ID to process;
2) current user can not edit one of the selected users. Look, may be you accidentally select some user with superadmin privileges.Look how WordPress checks if user can edit other user under multisite:
// In multisite the user must have manage_network_users caps. If editing a super admin, the user must be a super admin. if ( is_multisite() && ( ( ! is_super_admin( $user_id ) && 'edit_user' === $cap && is_super_admin( $args[0] ) ) || ! user_can( $user_id, 'manage_network_users' ) ) ) { $caps[] = 'do_not_allow'; } else { $caps[] = 'edit_users'; // edit_user maps to edit_users. }
User should be a superadmin to edit other superadmin, or have ‘manage_network_users’ capability.
Vladimir
KeymasterIf you have the same roles set at all sites, this scenario will work for you:
– go to Network admin -> Users -> User Role Editor.
– delete selected role. This action will delete a role from the main site.
– click “Update Network” button. This will replicate roles list from the main site to all subsites of your network. -
AuthorPosts