Vladimir Garagulya
Forum Replies Created
-
Forum: Plugins
In reply to: [User Role Editor] Custom Capability Not Working when Multiple Roles AssignedWordPress sums capabilities from all roles granted and checks the full list of capabilities, not from the last granted role only. It uses function current_user_can( ) for this purpose.
Re-check if something is wrong with your test.
It’s better to ask MM plugin support. I don’t have access to this commercial product to find an answer myself.
Forum: Plugins
In reply to: [User Role Editor] Ask: permission check for schedule publishYes, ‘read’ capability is required for access to wp-admin dashboard.
There is no special built-in permission in WordPress to allow/prohibit schedule publishing of posts/pages.
Forum: Plugins
In reply to: [User Role Editor] what happens when deactivate and delete URE pluginAll changes to the user roles made via URE are permanent and does not depend from the presence of URE on the site.
Forum: Plugins
In reply to: [User Role Editor] Admin bar missing for new user roleRead this article
Forum: Plugins
In reply to: [User Role Editor] Admin bar missing for new user roleDo you have active WooCommerce on site?
Forum: Reviews
In reply to: [User Role Editor] One of the easiest way to change user permissionsThank you.
Forum: Plugins
In reply to: [User Role Editor] Capabilities not workingIf user can install plugin, that is execute on your server any PHP code, it can get superadmin credentials in a minute. WordPress user permissions manage user access to WordPress UI, but lose sense if such user has access to the database via PHP code executed as new installed plugin.
Problem would be related to the data cache. Try to clear all cache, clear browser cookie too.
Forum: Plugins
In reply to: [User Role Editor] Remove user role editor when using proRole you added will not be deleted in any case. To know the rest read the article below:
https://role-editor.com/documentation/install-pro-version-not-lose-changes-made-free-version/
Forum: Plugins
In reply to: [User Role Editor] I cannot grant permission to manage user rolesDo you use WooCommerce?
If Yes, any other user except admin can edit users with ‘Customer’ role only, by default. It’s possible to change this via filter though:
https://woocommerce.wordpress.com/2018/10/11/woocommerce-3-4-6-security-fix-release-notes/
Forum: Plugins
In reply to: [User Role Editor] Add plugin to capabilities“Authorizer” admin menu item is protected by ‘create_users’ capability. Grant it to a role, which should have access to the “Authorizer”.
‘edit_users’ capability may be required also – according to the source code of the Authorizer plugin.
I suppose test user has shop_manager role and you granted to it (if absent) list_users, edit_users capabilities.
Without additional code: Test user with conditions above should can edit another user with ‘customer’ role. Does he?
If you add exactly code from the link above: test user should can edit other users with ‘editor’ role in addition to users with ‘customer’ role. Does he?
Pay attention code will allow to user edit only users with customer role and roles which you add via that code.
Forum: Plugins
In reply to: [User Role Editor] content disappears with the admin roleHi Laure,
If it’s a single WordPress installation turning ON the ‘unfiltered_html’ capability may help. If role does not have such capability, WP automatically removes any content containing potentially dangerous html tags.
If it’s a multisite WP installation, ‘unfiltered_html’ is prohibited by default for all users except superadmin. URE Pro includes a workaround for this security measure, with warning that it’s unsecure and you should trust your editors when allow them to use unfiltered html.
Yes. You may look at the users with a customer role. Shop manager can edit them currently. Editing all other users is blocked for security reasons. Add to the list of editable roles those, users with which you wish allow to edit for shop manager and it should solve your task.
Yes, you need. By default WooCommerce allows shop manager edit only users with customer role. In order to change this extend the list via custom filter
https://woocommerce.wordpress.com/2018/10/11/woocommerce-3-4-6-security-fix-release-notes/