Forum Replies Created

Viewing 15 posts - 136 through 150 (of 2,511 total)
  • Author
    Posts
  • Vladimir
    Keymaster

    You can exclude role ‘board_member’ from all user role selecting drop-down lists exactly for the user with role ‘coordinator’ using the code below:

    
    add_filter('editable_roles', 'ure_exclude_role', 10, 1);
    function ure_exclude_role( $roles ) {
        
        $user = wp_get_current_user();
        if ( empty( $user ) || empty( $user->roles ) ) {
            return $roles;
        }
        
        if ( !in_array( 'coordinator', $user->roles ) ) {
            return $roles;
        }
    
        // Remove board_member role from all dropdown user roles lists
        if ( isset( $roles['board_member'] ) ) {
             unset( $roles['board_member'] );
        }
    
        
        return $roles;
    }
    

    Also you can fully exclude roles and users with those roles from the point of view user with coordinator role with the help of “Other roles access” add-on:

    Other roles access management

    in reply to: Adding capabilies are not saved on user group #8128
    Vladimir
    Keymaster

    Hi,

    There would be 2 possible problems:
    1) Changes are not saved to any role due to JavaScript error. Check the browser JavaScript console if it contains error messages after “Users->User Role Editor” page opening or after click on the “Update” button.
    2) Role which you try to change is re-created by some plugin on a fly for every user requests. You may test this deactivating temporally all plugins except URE and update a role again.

    What case is yours?

    Vladimir
    Keymaster

    If look at the file class-gf-mailchimp.php, line #119, you will see:

    /**
    * Defines the capabilities needed for the Mailchimp Add-On
    *
    * @since 3.0
    * @access protected
    * @var array $_capabilities The capabilities needed for the Add-On
    */
    protected $_capabilities = array( 'gravityforms_mailchimp', 'gravityforms_mailchimp_uninstall' );

    So Mailchimp menu item is protected by ‘gravityforms_mailchimp’ user capability.

    Vladimir
    Keymaster

    Hi,

    In order to help you I need access to this add-on copy. If it’s applicable share .zip with support [at-sign] role-editor.com via Google Drive or DropBox. I use such software locally and in the investigation purpose only.

    Vladimir
    Keymaster

    Hi,

    Do you use this plugin for integration with MailChimp?

    in reply to: Restrict single post editing by post attribute? #8114
    Vladimir
    Keymaster

    As about tags, you can input tag ID to the edit restrictions for selected role.

    Yes, ure_edit_posts_access_id_list hook allows you to use any custom criteria by which you select posts available for a role.

    in reply to: I can’t use the plugin #8103
    Vladimir
    Keymaster

    Look now. I just deactivated and activated back User Role Editor as have recommended before. It restored its own user capabilities for administrator role and became available again.

    If it may be related somehow – I deactivated and activated back the “Menu Items Visibility Control” plugin also, thinking it works for back-end, not for front-end.

    Vladimir
    Keymaster

    Hi,

    If it’s possible allow me to look on the issue on-line with administrator privileges, send credentials to support [at-sign] role-editor.com

    Vladimir
    Keymaster

    Thanks for the information. Did you try to open this dialog before open “Users->User Role Editor” the 1st time? If Yes, then as a workaround try to open “Users->User Role Editor”, then try again “URL Parameters White List”. Let me know if that helped. I will add additional data value checking to exclude similar situation in a future.

    in reply to: I can’t use the plugin #8093
    Vladimir
    Keymaster

    I included the support email address in the prev. message. Send them there.

    in reply to: Errors when my users save a menu #8084
    Vladimir
    Keymaster

    Thanks for the help. I repeated and fixed this warning. I will publish it in a few days.

    in reply to: Add Admin role? #8083
    Vladimir
    Keymaster

    Hi Weber,

    1) You can add new role as a copy of ‘administrator’ role: Users->User Role Editor->Add Role->Make copy of: Administrator.
    2) Revoke unneeded user capabilities, like “User Role Editor” group and capabilities related to unneeded plugin if it’s applicable to revoke them. You can look what capability protect what plugin menu items using “Admin menu access” add-on.

    Btw., I don’t recommend to use any role ID, which included ‘administrator’ word. It may bring the mess to the WordPress UI and permissions processing, as due to a way how WordPress checks user permissions – as occurrence of the role ID to the string value. It’s better to use something like ‘admin_s’ instead.

    Vladimir
    Keymaster

    I see that a mode of activation is not important. My test shows that Connections->Settings admin menu item is available in case user can ‘connections_change_settings’ capability.
    More, plugin has own role editor – Connections->Roles, available to user who can ‘connection_change_roles’.

    Look again if some of capabilities started from ‘connections_’ was missed for a role at subsite. I don’t see another reason without deep investigation of CBD plugin code.

    in reply to: I can’t use the plugin #8079
    Vladimir
    Keymaster

    If this is applicable, you may send admin login credentials to support[at-sign] role-editor.com (better if you have a stage copy of the site). I will investigate this.

    in reply to: Login redirect #8073
    Vladimir
    Keymaster

    URE does not include such functionality.
    You can use another plugin for this purpose:

    LoginWP (Formerly Peter's Login Redirect)

Viewing 15 posts - 136 through 150 (of 2,511 total)