Forum Replies Created
-
AuthorPosts
-
Vladimir
KeymasterHi JLouis,
Thanks for the clarification.
Recommendation, try to minimize access by revoking unneeded user capabilities from a role 1st. Are ‘edit_posts’, ‘manage_options’ needed for this role?About a problem, try to temporally revoke the 2nd role from this user. Will admin access blocking work as expected after that? I suppose that you can have other admin menu access restrictions on the 2nd role which can conflict with the 1st one. Check the 2nd role for admin access restrictions. If it has them, show me screenshot. Top of a window is important too, to know what do you select “block selected” or “block not selected”.
Vladimir
KeymasterI did not select current role(s) at “Grant Roles” dialog as I positioned this feature for the bulk action. There is no sense to pre-select current roles when action is applied to multiple users at once.
But I agree with you such pre-selection will enhance usability if action is applied to a single user. I will update a code to work this way. Thanks.
Vladimir
KeymasterThere are a lot of other users of User Role Editor which think different – they need multiple roles assignment to one user at WordPress. Historically, I developed this feature after I got multiple requests about it from plugins users.
I will add a user interface for this option (swith ON/OFF other roles section) later.
Currently it’s possible to manage this feature via filters, if your setup it correctly. This is a short demo video.
Check if you don’t have any accident typos in a code and it’s really executed. For example, code above works for the user with ‘user-manager’ role only. Did you change a role ID for your own or may be remove role checking code?
Vladimir
KeymasterAdd this code to your active theme functions.php file or setup it as a Must Use plugin:
add_filter('ure_show_additional_capabilities_section', 'ure_show_additional_capabilities_section'); add_filter('ure_bulk_grant_roles', 'ure_show_additional_capabilities_section'); function ure_show_additional_capabilities_section($show) { if (current_user_can('user-manager')) { $show = false; } return $show; }
Vladimir
KeymasterHi,
Can you export the screenshots from the SnagIt software to .PNG or .JPG format in order I can see it without rebooting to Windows from Ubuntu and installing SnagIt, which I don’t use?
Vladimir
KeymasterHi,
Yes, it’s possible.
1st, grant access to the ‘Appearance’ menu for the role adding ‘edit_theme_options’ capability to it.
2nd, block unneeded menu items of “Appearance” menu using Admin menu access add-on.Vladimir
KeymasterThis bug was fixed with version 4.34.3.
Vladimir
KeymasterThanks for your help. I will publish a fixed version tomorrow.
Vladimir
KeymasterThanks to you.
The universal scenario when you don’t know what capability protects custom post type, look for that using Admin menu access add-on. Open it for ‘Administrator” role and look what capability protects needed menu item. Grant that capability to the selected role then. If this is a ‘edit_posts’, but you don’t need that this role access to the posts, except ‘nieuws’, then block unneeded menu items, like ‘Posts’ menu with the same “Admin menu access” add-on.
Vladimir
KeymasterUnfortunately, No.
Look, when user clicks ‘Add New’ post, WordPress creates a new post record at the database and then re-open for editing the existing (just new added) post. As you allowed to user to edit posts from selected categories list only, if this new added post will not has any allowed category, WordPress will show “You don’t have permissions to edit this post”. This is a reason why I have to assign automatically to the new added post the 1st item from the allowed list of available (allowed) categories.
So user has to reselect needed category if needed after that.
Vladimir
KeymasterIn order to restrict authors to post only to the selected list of categories use posts/pages edit restrictions add-on:
– activate add-on at Settings->User Role Editor->Additional Modules;
– go to Users->User Role Editor;
– select ‘Author’ role;
– grant ‘create_posts’ capability to this role;
– click ‘Posts Edit’;
– select “Block” or “Allow” action;
– input a list of digital category IDs to which you wish to block or allow access;
– save your changes.Vladimir
KeymasterI will appreciate if you leave a review at URE’s core version home:
Vladimir
KeymasterYes, it’s by design: you can not revoke a capability from administrator role, you can just add a capability to it.
Is it critical for your purpose to have option “Force custom post types to use own capabilities” turned ON? If not, switch it OFF at URE’s settings page and you will get access to this plugin back.
We met the incompatibility issue here.
I suppose that “Booked” plugin defines booked_appointments custom post type capability mapping some special way. I need more time to find a workaround…Vladimir
KeymasterCheck if administrator role has ‘edit_booked_appointments’ capability.
These capabilities are required by this plugin (menu item – capability):
Appointments – edit_booked_appointments
Pending – edit_booked_appointments
Calendars – manage_booked_options
Settings – edit_booked_appointments
What’s New? – manage_booked_optionsVladimir
KeymasterI looked at the older 1.4.6 version – it requires ‘manage_options’ for all “Appointments” menu items, including “Appointments->Settings”.
I recommend you to compare this plugin files with original copy, just in case some file was modified…
-
AuthorPosts