Forum Replies Created

Viewing 15 posts - 1,066 through 1,080 (of 2,536 total)
  • Author
    Posts
  • Vladimir
    Keymaster

    No need in access to your site copy. I just re-tested WC v. 3.4.6 and reproduced the issue.
    Good news: All roles are in place and just not shown while WooCommerce is active. I investigated the issue and found a serious bug in WooCommerce code:

    Look at the line #339. current_user_can() always returns true for WP multisite superadmin user. Thus this code hides all roles except ‘customer’. This function is located inside ‘includes/wc-user-functions.php’ file.
    It’s a new behaviour. This code was added from version 3.4.6

    You have 2 variants until they fix this:

    1) rollback to prev. version of WC 3.4.5

    or

    2) comment lines 339-342 in the updated function. It looked this way at version 3.4.5:

    
    function wc_modify_editable_roles( $roles ) {
        if ( ! current_user_can( 'administrator' ) ) {
            unset( $roles['administrator'] );
        }
        return $roles;
    }
    
    in reply to: Block specific URL #5189
    Vladimir
    Keymaster

    I don’t have solution for this purpose. While it’s possible to block access to admin menu items and related URLs, URE Pro does not manage access inside allowed pages.

    Vladimir
    Keymaster

    Do you have files (without wp-content/uploads folder) & database copy before update to 4.48?
    I’m ready to test this update with your files/data to isolate a problem if it will be repeated, while I don’t even imagine currently what my cause it.

    Vladimir
    Keymaster

    Version 4.48 does not contain any changes related to the roles list update.
    If you still have access to the URE, then at least one additional role exists – administrator.

    Did you activate/update any other/new plugins?

    in reply to: How to add permissions to wc invoice #5182
    Vladimir
    Keymaster

    Daniel,

    All items of ‘WC Invoice’ menu are protected by ‘manage_options’ user capability. It’s hardcoded in plugin source code. Plugin does not provide any filter to change this capability without editing source code.

    Admin menu access add-on allows to block for a role critical menu items, which you can not block via user capabilities.

    in reply to: How to add permissions to wc invoice #5180
    Vladimir
    Keymaster

    Daniel,

    You have 2 options:
    1) ask that plugin support what permission is required for access to its menu;
    2) share plugin copy with me (support [at-sign] role-editor.com) via DropBox or similar service in order I can find an answer myself.

    in reply to: How to add permissions to wc invoice #5178
    Vladimir
    Keymaster

    Hi Daniel,

    Give me more details.
    What plugin do you use to work with wc invoice?
    What menu item do you wish to make available for a user?

    Vladimir
    Keymaster

    No, I do not say this. You just have to know that “Block not Selected” model is more restrictive and may require some additional tuning. Read this part of the documentation article for more details.

    All items of the “Tools” submenu use the same command in URL: tools.php and differs just by URL arguments. Thus it requires to “white list” additional parameters not included into menu item URL by default, like filter or page number for the “Broken Links” page even for the “Block Selected” model.

    Unfortunately current URE version missed support of URL arguments white list for the “Tools” menu. Thanks for pointing me to that. I will develop a fix and publish it this month.

    Currently you can try a workaround: use “Block Selected” model and temporally do not block any item under the “Tools” menu.

    Vladimir
    Keymaster

    To @jsound:
    Hi,

    Is some menu item from the “Tools menu” selected as “Block selected” at “Admin menu” for this role?

    Vladimir
    Keymaster

    Hi,
    1) default WordPress admin user has ID = 1.
    If your user after export/import has changed ID it would be a reason why you do not see other users with administrator role. It’s a default behavior for URE for users with ‘adminisrtrator’ role, which are not WordPress default one. It’s possible to switch off this logic via custom filter.

    Compare this parts of your database at the stage and the live copies.

    2) User Role Editor grants all ‘ure_%’ permissions automatically to the ‘administrator’ role on its activation. So try to deactivate and activate back User Role Editor.

    in reply to: Cannot edit roles on page #5164
    Vladimir
    Keymaster

    Check browser JavaScript console for the error messages. Do you see any? Show it here.

    in reply to: Cannot edit roles on page #5163
    Vladimir
    Keymaster

    Give me more details. What’s going wrong? Did “Content view restrictions” section disappear? Is roles selection dialog not opened? Are changes not saved?

    Vladimir
    Keymaster

    Thanks for the screenshot with product view settings example.
    I re-tested the same one and can not repeat the issue.
    Do you use some WP content caching plugin? If Yes, try to switch off products list page from caching for these roles. It should help.

    in reply to: Redirect to URL as default option in settings ? #5160
    Vladimir
    Keymaster

    Feature is realized in the development version and will be available with the next release of User Role Editor Pro. It will be a version 4.48 according to the current plan.

    Vladimir
    Keymaster

    Show an example for 1 product how did you restrict it for some user, but not for others. Screenshots would be helpful. If you can not use external links for screenshots, send them directly to support [at-sign] role-editor.com

Viewing 15 posts - 1,066 through 1,080 (of 2,536 total)