Viewing 4 replies - 1 through 4 (of 4 total)
  • Go into the plugin directory and edit line 127

    /** * Allow Administrators  */
    function allow_administrators( $bool ) {
    		if ( ! is_admin() && current_user_can( 'manage_options' ) && (bool) get_option( 'password_protected_administrators' ) )
    			return 0;
    		return $bool;
    	}

    Change this :

    if ( ! is_admin() && current_user_can( 'manage_options' ) && (bool) get_option( 'password_protected_administrators' ) )

    to this :

    if ( is_user_logged_in() && (bool) get_option( 'password_protected_administrators' ) )

    Make sure the “Allow admin” option is turned on in the backend

    disclaimer : I’m in no way affiliated with the plugin author. Updates to the plugin will cause this to not work.

    Thanks luckygurl. Adding in a “logged in” users as well as administrators is probably a good idea for me to add ??

    Thanks for the plugin! It’s very well commented and was easy for me to edit. I think it would be a good feature, I was looking for something like this myself.

    Version 1.7 adds an option to allow logged in users.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Allow non-administrator roles’ is closed to new replies.