Forum Replies Created

Viewing 15 posts - 976 through 990 (of 2,529 total)
  • Author
    Posts
  • Vladimir
    Keymaster

    @armel,

    Thanks for this report. I confirm the bug introduced with version 4.49.2. It’s related to the core version 4.48:
    Update: Multisite: Sites list is not requested from database on every page load in order to increase page load speed.

    I will post here when the fix will be ready.

    in reply to: Transfer site in Pro personal #5394
    Vladimir
    Keymaster

    Just input your license key at to URE settings at a site with new domain. Previous one will be excluded automatically.
    If it’s the same installation there is not need to do something.

    Vladimir
    Keymaster

    If it’s possible to look on your site on-line, send login credentials to support [at-sign] role-editor.com
    I will look what argument causes redirection.

    Vladimir
    Keymaster

    Is role of such user restricted via “Admin menu access” add-on?

    in reply to: Doesn't seem to work. #5385
    Vladimir
    Keymaster

    author role includes these capabilities by default:
    delete_posts
    delete_published_posts
    edit_posts
    edit_published_posts
    publish_posts
    read
    upload_files

    ‘read’ capability (General group) allows to user access wp-admin by default. If you have active WooCommerce, it changes this WordPress default behavior. User should have one from these capabilities for access to wp-admin:
    manage_woocommerce, edit_posts, view_admin_dashboard.

    This may explain why user can not access wp-admin, after you revoke ‘edit_posts’ from his role.

    in reply to: Doesn't seem to work. #5383
    Vladimir
    Keymaster

    About custom post type capabilities:
    Custom post type is defined with special parameter ‘capability type’. If custom post type uses the same capability type as the WordPress built-in ‘post’ does, that is ‘post’, then this custom post type is protected by the same capabilities set: edit_posts, ‘delete_posts’, ‘publish_posts’, etc.
    Any capability, like ‘edit_posts’ is granted to a role, not to a custom post type, or WordPress built-in type post. Capabilities groups to the left in a User Role Editor just shows a kind of permissions required for access to the functionality related to a group. Thus if few post types uses the same capability type you change access to all of them at once when: revoke ‘edit_post’ from a role. It does not matter which group you use to find ‘edit_posts’ and turn OFF its checkbox.

    If you need manage access to all custom post types separately there is a special option at “Settings->User Role Editor”: “force custom post types use their own capabilities”.
    You have to aware that if you turn this option ON, you need to check roles if they have needed capabilities, e.g. ‘edit_attachments’, etc., as every post type will get its own capability type: post type ‘video’ – ‘edit_videos’, ‘project’: ‘edit_projects’, etc.

    in reply to: see CPT UI custom post type in Menus #5379
    Vladimir
    Keymaster

    OK. I looked at the WordPress source code.
    I don’t see any access conditions for this sections at nav-menu. They are the usual meta boxes registered for this page.
    Look at the “Screen Options” at the top of the nav-menus.php page, just in case if a “Projects” checkbox is not turned ON for this user.

    in reply to: see CPT UI custom post type in Menus #5377
    Vladimir
    Keymaster

    Just a guess, is there at least one project available for editing to this custom role at wp-admin?

    in reply to: see CPT UI custom post type in Menus #5375
    Vladimir
    Keymaster

    Hi Jase,

    Is this custom post type visible at admin menu (wp wp-admin)?
    ‘Pages’ is a WordPress built-in post type. Your custom post type should be visible at menu editor page as a separate widget, like ‘Projects’ at your screenshot.

    in reply to: Download version 4.49 (not 4.49.2) #5372
    Vladimir
    Keymaster

    Hi,

    Right, the latest version you can download from the download page after login to role-editor.com is 4.49.2. Click large read “Download” button to get it.
    I re-tested minute ago with expected result.

    It’s correct and allowed to input your license key to one stage server and update URE Pro automatically.

    Vladimir
    Keymaster

    Hi,

    try this code:

    
    add_filter('ure_post_edit_access_authors_list', 'ure_restrict_authors_list');
    
    function ure_restrict_authors_list($authors) {
        
        $role = 'author';
        $user = wp_get_current_user();    
        if (!in_array($role, $user->roles)) {
            return $authors;
        }
        
        $args = array(
            'role' => $role
        );
        $wp_user_search = new WP_User_Query( $args );
        $users = $wp_user_search->get_results();
        $ids = array();
        foreach( $users as $user ) {
            $ids[] = $user->ID;
        }
        $ids_str = implode( ',', $ids );
        $authors = URE_Utils::concat_with_comma( $authors, $ids_str );
        
        return $authors;
    
    }
    

    Replace ‘author’ role with your role id, like ‘role_b’. Do not forget to add ‘edit_others_posts’ capability to role_b role in order it can edit posts from other authors. Only posts from users with role_b role will be available for editing for any user with role_b role with this code applied.

    in reply to: Role Editor not applyhing changes. #5366
    Vladimir
    Keymaster

    Thanks for sharing this information.

    Vladimir
    Keymaster

    Hi,

    1) role A: Edit restrictions add-on has “Own data only” option. It hides posts created by other authors from the current user at wp-admin posts list page.

    2) role B: There is no criterion for edit restrictions by the role of authors. It’s possible to use tags or categories though. This post may give a starting point.

    in reply to: Membership and Download #5359
    Vladimir
    Keymaster

    Strange. Thanks again. I will make more testing with different ISPs.

    in reply to: Membership and Download #5357
    Vladimir
    Keymaster

    Thank you for the help with testing CF.
    I tested again via other provider and got the same error message. Clicked “Send” button again (as it offered) and message was send. Can you make the same?

Viewing 15 posts - 976 through 990 (of 2,529 total)