Forum Replies Created
-
AuthorPosts
-
Vladimir
KeymasterHi,
If a user has more than 1 this role assigned, then look at the “Hide admin bar” option for other role too.
If you have WooCommerce activated then read this article.
Vladimir
KeymasterHi Jesse,
Go to “Settings->User Role Editor->Additional Modules” tab and set default values for “Content view restrictions” under “Activate content view restrictions” checkbox, like this:
– Allow;
– Any user role (logged in only).Any new added post or page will get by default these values and will be available for the logged in users only.
Vladimir
KeymasterThanks for the link to the related discussion.
They discussed and tested the update routine to replace orders post_author with related customer ID during database update for v. 3.5. So you will not need to update anything manually, I hope.
Let’s wait 3.5 and see.Vladimir
KeymasterWooCommerce support answered to one of my clients that they plan to change this with one of the future updates and write the customer ID to the order post_author field. I’m not sure when though.
But if they will make that, it does not have sense to extract order customer ID from the post meta and make code more complex (slow) than it is now.
What do you think?Vladimir
KeymasterIt depends from which user your orders are created, who is the author of orders. Are your customers authors of their orders?
I have a report that WooCommerce may register orders from a user with ID=1. URE edit restrictions will not help in this case. You can check this using SQL command, which shows orders list:SELECT * FROM wp_posts where post_type='shop_order';Look at the field ‘post_author’ value. Is this field contains different values or it is not?
Vladimir
KeymasterHi Phil,
You can set view restrictions by category at the role level. Look at the “Role level restrictions” part at the end of this article.
Vladimir
KeymasterIt seems that URE does not see new created page ID between of allowed pages ID list just after that page creation. The most probable reason – new page does not have parent page on that moment.
I will look if it’s correct and how to resolve this.04/07/2018 at 01:22 in reply to: Edit restriction capabilities with USR not working with The Event Calendar Pro #5003Vladimir
KeymasterHi Steven,
URE applies edit restrictions to all existing custom post type even if you input to a user profile just ID of event. If Event Calendar Pro (ECP) uses custom post type to store attendees, I may suppose that URE applies edit restrictions to it. And once user can not edit attendees, he does not see them. If my assumption is correct post type exclusion filter may help you.
To give more exact conclusion I need access to ECP plugin copy.
Vladimir
KeymasterVariable $user is not defined inside function
ure_show_additional_capabilities_section().
This version will fix the issue:function ure_show_additional_capabilities_section($show) { $user = wp_get_current_user(); if (in_array('admin', $user->roles) || in_array('administrator', $user->roles)) { $show = false; } return $show; }Vladimir
KeymasterI can not repeat this. ‘Other roles access’ add-on should not apply restrictions to administrator role at all. And it does at my test WordPress single site istallation.
1) created ‘webmaster’ role as a full copy of ‘administrator’ role.
2) marked ‘webmaster’ role as blocked for ‘administator’ role.
3) revoked all URE capabilities from the ‘administrator’ role.
4) created new user with ‘administrator’ role and new user with ‘webmaster’ role.
5) logged in under a new user with ‘administrator’ role.
6) this user sees user with ‘webmaster’ role as expected, – restrictions does not applied for ‘administrator’ role by design.Give me an exact scenario to repeat the issue or send credentials for your stage copy to support email address.
Vladimir
KeymasterI read your initial message in this topic again and paid attention that roles ID matches ‘admin’ is an exact part of ‘administrator’. It’s not a good idea to name roles this way.
WordPress stores roles list granted to a user in the text field as a serialized PHP array – string.
`WHERE meta_value like ‘%admin%’ SQL expression will return records as for the user with ‘admin’ role, as for the user with ‘administrator’ role. It may lead to the different issues.Vladimir
KeymasterWorking on the update I changed my decision – it will be more correct to apply additional options for any role, including administrator. It will give ability for customization for any users, including admins.
This update will be available at the 1st decade of July, 2018.
Thanks again.Vladimir
KeymasterI confirm this information.
Additional options for role does not applied to the user with ‘ure_edit_roles’ capability, as such user can change any option for any role.
I will hide additional options for ‘administrator’ role in order theme not confuse users.Thank you for notification about this user interface inconsistency in URE.
Vladimir
KeymasterOK.
Vladimir
KeymasterIs it possible to look at your site online with ‘administrator’ privileges? If yes, send user login credentials to support [at-sign] role-editor.com
If ‘no’, I will ask you to share site backup copy created with UpdraftPlus plugin via DropBox or similar service.
I will can take more deep view on a possible problem and provide you better support. -
AuthorPosts