Support » Plugin: User Role Editor » Can’t deactivate Other Roles Access module

  • Resolved gravatard

    (@gravatard)


    Greetings,
    In URE Settings > Additional Modules > Activate Other Roles Access module > once activated, it will not deactivate and stay deactivated.

    I’ve tried unchecking box, uninstalling/reinstalling plugin, looking for left-over folders via FTP with old settings, cleaning database of transients, but nothing will allow to remove “Other Roles” box when adding a new user.

    Is it the same for other Additional Modules? Once activated they can never be deactivated?

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • gravatard

    (@gravatard)

    FWIW, I think it’s this function: “ure_other_roles_access_data”.

    When adding new users the “Other Roles” box is removed upon plugin uninstall, but returns upon reinstall (despite not activating “Other Roles Access module”).

    Plugin Author Vladimir Garagulia

    (@shinephp)

    Hi,

    It’s better to discuss Pro version features at the dedicated forum or by email.

    Read this article to understand the purpose of the add-on you try to switch ON/OFF.

    As about the “Other roles” section at the “Add new user” page, try these filters:

    
    <?php
    
    /*
     * Hides Additional Capabilities section at user profile
     * and other roles section at the "Add new user" page.
     */
    
    add_filter('ure_show_additional_capabilities_section', 'ure_show_additional_capabilities_section');
    
    function ure_show_additional_capabilities_section( $show ) {
    
    /*  Remove comment if do not wish to apply this for administrators also  
        $lib = URE_Lib::get_instance();
        if ($lib->is_super_admin()) {
            return $show;
        }
    */            
        return false;
    }
    
    /*
     * Hides "Grant Roles" button at Users list page 
     */
    add_filter('ure_bulk_grant_roles', 'ure_bulk_grant_roles');
    
    function ure_bulk_grant_roles( $show ) {
    
    /*  Remove comment if do not wish  wish to apply this for administrators also  
        $lib = URE_Lib::get_instance();
        if ($lib->is_super_admin()) {
            return $show;
        }
    */
        
        return false;
    }
    
    
    gravatard

    (@gravatard)

    Great, thank you for your help!

    If I have further issues beyond your proposed solution I will visit the forum at your website.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.