Forum Replies Created
-
AuthorPosts
-
VladimirKeymaster
You may try to use URE Pro edit access add-on for this purpose. It allows to show posts(orders) by the list of author (comma separated user IDs). URE applies custom filter “ure_post_edit_access_authors_list“. Just extract the list of users who has role sales_agent, and return through this filter this list if current user has this role too.
VladimirKeymasterAnswering on your question at Stackoverflow:
WooCommerce order is a custom post type ‘shop_order’. Its main record is stored at wp_posts database table (‘wp_’ is db prefix). This record does not store the information about user role. It has field ‘post_author’, which contains user ID, under which this order was created. In order to find a role you need to load user by ID using get_user_by(), and check role(s) of that user.
VladimirKeymasterHello Eddy,
Try to build more advanced settings for your “Block not selected” mode to fix the search problem. Read carefully the “Block not selected” part of the admin menu documentation article.
Btw., what plugin adds “Rank Math” admin menu item? I will investigate the described issue.
VladimirKeymasterHi Fung,
Thanks for letting me know.
Btw., it would be some database request result caching issue, if you use one.VladimirKeymasterHi,
where the setting is so that users can only work with their own stuff?
1) Activate “Edit restrictions” add-on.
2) The option named “Own data only” you may turn ON directly for the selected user at user profile or at the “Post edit” dialog window opened for selected role at the “User Role Editor”.VladimirKeymasterYou may try beta version 4.60.2.b3 available after login from the “Download” page. It contains needed fixes.
VladimirKeymasterThanks for this report.
Can you select “Network” tab, select related ‘admin-ajax.php’ request –
Form Data
action: ure_ajax
sub_action: get_nav_menusand look on the “Response” tab content for that request?
Does it show some PHP fatal error message?I will make more thorough own tests either and return with a fix if find any problem.
VladimirKeymasterHi,
Unfortunately, it’s not possible. WooCommerce provided access to the orders list for user who can ‘edit_shop_orders’ and shows order content only opening order editing page. So I don’t see a way to disable all order editing features without creating a separate read only form for order viewing, which is beyond the URE plugin functionality.
VladimirKeymasterUser Role Editor by default extends WordPress UI to allow grant more than single user role via “Other Roles” field. You can hide it adding this custom code to the active theme functions.php file:
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) { $user = wp_get_current_user(); if (in_array('user-manager', $user->roles)) { $show = false; } return $show; }
VladimirKeymasterRead this article.
VladimirKeymaster“Admin menu access” module shows menu items list according to the current permissions granted to the selected role. Generally if role does not have permissions to see menu item, there is no need to block it via extension like “Admin menu access”, as such menu should be not available for user.
Some plugin defines its admin menu in more complex manner, checking user permissions directly, but using lower capabilities, like ‘read’ or ‘edit_posts’ in the menu definition code. If you meed with case, when “Admin menu” does not show menu item for a role, but user sees this menu, let me know, what menu item and to what plugin it belongs. I will investigate it.
VladimirKeymasterRead this article.
VladimirKeymasterAs I remember any who can edit Gravity form, can export its entries.
Btw., URE includes “GF edit restrictions” add-on, which allows to restrict the list of forms available to a user. Plus, such user will can export entries only for the allowed forms.VladimirKeymasterGo to the “Posts->All”. The 2nd column in a view is “Author”. Find a post, created via Gravity Forms, which you wish allow to edit to some user. Are all created from the same user? Point by mouse to the user name at the “Author” column. You will see the user ID at the link, like 20 here: wp-admin/edit.php?post_type=post&author=20
Then you can use “edit restrictions” add-on and input to your user profile the author ID:
section “Posts/Pages/Custom Post Types Editor Restrictions”, field “with author user ID (comma separated)”.VladimirKeymasterIs “gravityforms_export_entries” capability shown turned ON even after your turn it OFF and update the role?
-
AuthorPosts