Forum Replies Created
-
AuthorPosts
-
Vladimir
Keymaster1st option, revoke ‘edit_theme_options’ capability the user role.
If for some reason you wish to leave ‘edit_theme_options’ capability to a role, for access to some menu item under ‘Appearance’ menu for example, then,
2nd option, you can enable “Theme Options” admin menu item using “My The7 -> Show theme options in sidebar” checkbox. After that just block “Theme Options” admin menu item using “Admin menu access” add-on. This will automatically block “Theme Options” top admin menu too.
Vladimir
KeymasterHi,
You were on the right way with
unset( $pages[‘product_filter’]);
The problem is the priority value. ‘Product filter’ plugin adds its tab via ‘woocommerce_settings_tabs_array’ filter with priority 50. So, in order to remove it you have to add the same filter with larger priority, at least 51. So try
add_filter('woocommerce_settings_tabs_array', 'change_wc_settings_tabs', 51); function change_wc_settings_tabs( $pages ) { $user = wp_get_current_user(); if ( in_array( 'your-role', $user->roles ) ) { } unset( $pages['product_filter']); // Product Filter }
Vladimir
KeymasterHi,
Can you share this theme .zip with support[at-sign]role-editor.com via DropBox or similar service? I will can look at it then. I use such products for the testing purpose only.
Vladimir
KeymasterHi,
I need access to the “Product Filter” plugin in order to test this. Share its .zip via DropBox or similar with support [at-sign] role-editor.com
I use such products for the investigation purpose only and install at the local development environment.Vladimir
KeymasterHi,
Block correspondent left site admin menu item revoking user capability or (if you can not) or using “Admin menu access” add-on:
https://www.role-editor.com/block-admin-menu-items
This should block related top admin menu link.Vladimir
KeymasterHi Fabio,
Thanks for this notification. I confirm the bug. I will fix it with a next update.
Vladimir
KeymasterIt’s for your choice.
WordPress offers automatically move all content from user you try to delete to other author as an option. If you select it, WordPress will change author for posts, pages and uploaded media from deleted user to a selected one.
If you need to store authors history you can just leave user in the list with no roles assigned.22/08/2020 at 02:20 in reply to: Granted Editor view/edit/delete permissions for pages but they can only see 15 #6993Vladimir
KeymasterHi,
Look if your editor role is not restricted via edit restrictions add-on.
If it’s restricted and you need that editor can look/edit all posts but restricted list of pages, you can use special ure_restrict_edit_post_type filter to exclude ‘post’ type from the restrictions you set for role or user.19/08/2020 at 11:27 in reply to: How to restrict access by Post ID and other Posts by Taxonomy ID for same user #6991Vladimir
KeymasterHi,
I looked at the adanderson user and see the former conflict of “Admin menu” settings for 2 roles:
Problem was that “SDoL Page Editor” role has “Admin menu” “Not Selected” blocking model, but “News” role – “Selected”. When URE builds general admin menu for 2 roles it take blocking model from the 1st role and if blocking model of the 2nd role is different then it’s ignored. As a result ‘News’ menu is blocked via “Admin menu” restrictions set for the 1st role.Vladimir
KeymasterResize image after upload plugin create submenu item “Settings->Resize Image Upload” for every subsite and protect it using ‘manage_options’ capability. In order to block/hide menu item for subsite you have 2 ways:
1) Block it for the main site. Then replicate all roles with admin menu settings together for all other subsites. Go to the “Network Admin->Users->User Role Editor” and click “Update Network”. Pay attention that this operation overrides all roles at all subsites with a copy from the main site.
2) Go to the selected subsite, open URE, select role with ‘manage_options’ capability. “Resize image upload” is available only for such roles. Then block this menu item as you made it at the main site.
Vladimir
KeymasterI installed NS Cloner from wordpress.org at my test site. It does not show ‘License’ menu item. Do you use a paid (pro) version of NS Cloner?
It would be good to get a link for the image resize plugin too.
Vladimir
KeymasterHi,
I don’t see such way. Only use a role copy which will not have content view restrictions.
Vladimir
KeymasterHi,
There is no way to achieve this via User Role Editor Pro.
It’s possible to hide ‘Publish’ button via CSS adding custom code to theme’s functions.php file, but author will can not save changes to the post in this case, only change its status.
Vladimir
Keymaster“Tools->Delete Site” is protected by default by ‘delete_site’ capability, which is mapped by WordPress to ‘manage_options’, wp-includes/capabilities.php:
case 'delete_site': if ( is_multisite() ) { $caps[] = 'manage_options'; } else { $caps[] = 'do_not_allow'; } break;
So if role does not have ‘manage_options’ capability URE will not show this menu item in the “Admin menu” dialog.
My test shows that “Admin menu” allows to block “Tools->Delete Site” successfully in case role has ‘manage_options’ capability for other purpose.Vladimir
Keymaster1st, look if you can revoke from a role unneeded capabilities. Capabilities started from ‘ure_’ protect access to User Role Editor. Revoke them from ‘administrator’ role and single site admin will not see Users->User Role Editor (ure_edit_roles) and Settings->User Role Editor (manage_network_plugins).
2nd, use URE Pro Admin menu access as the 2nd level of configuration, admin menu access, when you can not revoke some capability, which is in use by different menu items at the same time, like manage_options or edit_posts.
-
AuthorPosts