Forum Replies Created

Viewing 15 posts - 271 through 285 (of 2,511 total)
  • Author
    Posts
  • in reply to: How can i hide woocommerce orders based on role? #7703
    Vladimir
    Keymaster

    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.

    in reply to: How can i hide woocommerce orders based on role? #7702
    Vladimir
    Keymaster

    Answering 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.

    in reply to: RankMath and others are visible in Admin Menu #7699
    Vladimir
    Keymaster

    Hello 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.

    in reply to: Can not create new role #7696
    Vladimir
    Keymaster

    Hi Fung,

    Thanks for letting me know.
    Btw., it would be some database request result caching issue, if you use one.

    in reply to: Media Library #7691
    Vladimir
    Keymaster

    Hi,

    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”.

    in reply to: Ajax Error on Backend #7689
    Vladimir
    Keymaster

    You may try beta version 4.60.2.b3 available after login from the “Download” page. It contains needed fixes.

    in reply to: Ajax Error on Backend #7687
    Vladimir
    Keymaster

    Thanks for this report.
    Can you select “Network” tab, select related ‘admin-ajax.php’ request –
    Form Data
    action: ure_ajax
    sub_action: get_nav_menus

    and 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.

    in reply to: Support manager with read orders but not to edit #7683
    Vladimir
    Keymaster

    Hi,

    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.

    in reply to: Promote users capability #7678
    Vladimir
    Keymaster

    User 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;
    }
    
    in reply to: Trying to understand the Admin Menu Access Module #7677
    Vladimir
    Keymaster

    Read this article.

    in reply to: Trying to understand the Admin Menu Access Module #7674
    Vladimir
    Keymaster

    “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.

    in reply to: How to upgrade from FREE to PRO version? #7671
    Vladimir
    Keymaster

    Read this article.

    in reply to: Media Library #7665
    Vladimir
    Keymaster

    As 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.

    in reply to: Media Library #7664
    Vladimir
    Keymaster

    Go 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)”.

    in reply to: Media Library #7662
    Vladimir
    Keymaster

    Is “gravityforms_export_entries” capability shown turned ON even after your turn it OFF and update the role?

Viewing 15 posts - 271 through 285 (of 2,511 total)