Forum Replies Created

Viewing 15 posts - 2,071 through 2,085 (of 2,541 total)
  • Author
    Posts
  • Vladimir
    Keymaster

    Thanks for the feedback and feature request.

    It’s possible to replicate all roles at once to all sites. ‘Network Update’ button at ‘User Role Editor’ page serves for it. But bulk replication of users with meta data about roles assigned to them is not realized. I will add such functionality, with time…

    Vladimir
    Keymaster

    Divi theme load its framework (create custom post type et_pb_layout) conditionally:

    
    function et_builder_should_load_framework() {
    	global $pagenow;
    
    	$is_admin = is_admin();
    	$action_hook = $is_admin ? 'wp_loaded' : 'wp';
    	$required_admin_pages = array( 'edit.php', 'post.php', 'post-new.php', 'admin.php', 'customize.php', 'edit-tags.php', 'admin-ajax.php', 'export.php' ); // list of admin pages where we need to load builder files
    	$specific_filter_pages = array( 'edit.php', 'admin.php', 'edit-tags.php' ); // list of admin pages where we need more specific filtering
    
    	$is_edit_library_page = 'edit.php' === $pagenow && isset( $_GET['post_type'] ) && 'et_pb_layout' === $_GET['post_type'];
    	$is_role_editor_page = 'admin.php' === $pagenow && isset( $_GET['page'] ) && apply_filters( 'et_divi_role_editor_page', 'et_divi_role_editor' ) === $_GET['page'];
    	$is_import_page = 'admin.php' === $pagenow && isset( $_GET['import'] ) && 'wordpress' === $_GET['import']; // Page Builder files should be loaded on import page as well to register the et_pb_layout post type properly
    	$is_edit_layout_category_page = 'edit-tags.php' === $pagenow && isset( $_GET['taxonomy'] ) && 'layout_category' === $_GET['taxonomy'];
    
    	if ( ! $is_admin || ( $is_admin && in_array( $pagenow, $required_admin_pages ) && ( ! in_array( $pagenow, $specific_filter_pages ) || $is_edit_library_page || $is_role_editor_page || $is_edit_layout_category_page || $is_import_page ) ) ) {
    		return true;
    	} else {
    		return false;
    	}
    
    }
    

    So ‘et_pb_layout’ CPT is not available by default at User Role Editor page, which is loaded from users.php

    I add a workaround for this issue into upcoming version 4.25, which is under testing currently. So the issue will be resolved with the next public release of URE Pro.

    Vladimir
    Keymaster

    Thanks for this information. I repeated the issue at my test environment. I will inform you as I prepare the fix.

    in reply to: Give access to yoast seo plugin #2259
    Vladimir
    Keymaster

    I confirm the issue with UpdraftPlus topbar menu. It will be fixed in version 4.25. Development version will include this fix starting from 4.25.b6, which I will make available today.

    in reply to: Create new role nor working #2258
    Vladimir
    Keymaster

    Good that a problem was resolved. Thanks for the feedback.

    in reply to: Restrict Orders View – 2 #2251
    Vladimir
    Keymaster

    Are the previously discussed settings (editing restricted by author ID) still active for this user?

    in reply to: Restrict Orders View – 2 #2249
    Vladimir
    Keymaster

    About WordPress “must-use” plugins: https://codex.wordpress.org/Must_Use_Plugins

    Yes, you need to add the code to fully exclude the order from other users. They are included by default for products, where this user is an owner.

    in reply to: Restrict Orders View – 2 #2247
    Vladimir
    Keymaster

    If you have a test environment try development version (current is 4.25.b5). It’s available after login from the same download page.

    I added a filter, which allows to switch off order, which added by default according to the product owner ID. So add it to the theme’s functions.php or set up this code as the ‘must-use’ plugin.

    
    add_filter('ure_edit_posts_access_add_orders_by_product_owner','ure_add_orders_by_product_owner',10,1);
    
    function ure_add_orders_by_product_owner($value) {
    
      return false;
    }
    
    Vladimir
    Keymaster

    General recommendation – whenever it’s possible to block access via user capability – remove that capability from the user role. Use ‘Admin menu access’ module just in case you have to leave the capability in the role to provide access to some other menu items.

    Links menu is protected by ‘manage_links’ capability. I suppose it is not used anywhere else. So remove it from the ‘production’ role.

    Btw, I successfully blocked ‘Links’ menu as ‘Not Selected’ at recent test with URE Pro v. 4.24.6. It just confirms your guess that discussed site has something special…

    Vladimir
    Keymaster

    Hi Kevin,

    What version of User Role Editor Pro is installed at your site?

    in reply to: Give access to yoast seo plugin #2239
    Vladimir
    Keymaster

    I will test UpdraftPlus and return to you with a conclusion.

    in reply to: Restrict option to only particular plugins #2238
    Vladimir
    Keymaster

    Send me please a screenshot of role assigned to a user with restricted access.
    Check if you really restricted access for this user to iThemes Settings page. If a related menu item is blocked by User Role Editor Pro, but you can access it via direct URL, give a try to a development version of URE Pro 4.25.b4. It includes some enhancement to the URL blocking logic.

    in reply to: Restrict option to only particular plugins #2237
    Vladimir
    Keymaster

    It’s possible to remove all admin notices for the role:

    Remove admin notices

    iThemes plugin notice – I will test a described issue.

    Revolution Slider don’t use custom post type to store slider as for example WooCommerce does. Plugin stores records at its own DB tables. So I don’t have decision to manage access to the sliders.

    in reply to: Restrict permission to … #2236
    Vladimir
    Keymaster

    In order to help you I need to know exactly what plugin adds that menu items. Send me download link from wordpress.org or .zip copy (to support email) if it’s a paid product.
    I use provided paid products for the testing purpose and at my local desktop only.

    Contact Form 7 – “Integration” menu item is protected by ‘manage_options’ capability. If role has this capability it will be shown at ‘Admin Menu’ dialog for that role:
    cf7-integration-menu-item
    When I block it, it becomes unavailable for user with that role:
    CF7 menu without Integration menu item

    in reply to: Restrict option to only particular plugins #2232
    Vladimir
    Keymaster

    I will answer, little later today.
    I’m preparing bug fix release currently.

Viewing 15 posts - 2,071 through 2,085 (of 2,541 total)