Forum Replies Created

Viewing 15 posts - 961 through 975 (of 2,518 total)
  • Author
    Posts
  • in reply to: Activate content view restrictions No topics #5407
    Vladimir
    Keymaster

    Hi,

    URE Pro does not apply any restrictions to users with ‘administrator’ role. That’s why it helps.

    Can you show screenshots what settings you made to restrict content view and what visible/hidden. If information is not for the public, you can send links directly to support [at-sign] role-editor.com

    in reply to: Access to Ninja Form Plug-in Form Submissions #5404
    Vladimir
    Keymaster

    wp-admin menu item “Ninja Forms->Submissions” as all other “Ninja Forms” submenu items are protected by ‘manage_options’ user capability.
    There is a custom filter ‘ninja_forms_admin_submissions_capabilities’ which allows to change default ‘manage_options’ capability to other one. But I did not test if it will be enough for access to full “Submissions” functionality of “Ninja Forms”.

    in reply to: Change plugin capability #5403
    Vladimir
    Keymaster

    Hi,

    Look at the “Admin menu access” add-on developed especially for this purpose. May be it will be suitable for you.

    Vladimir
    Keymaster

    I published version 4.49.3 to fix the reported issue with add-ons data network replication.

    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.

Viewing 15 posts - 961 through 975 (of 2,518 total)