Support » Plugin: Allow Categories » [Plugin: Allow Categories] Admin access broken in WordPress 3.3

Viewing 3 replies - 1 through 3 (of 3 total)
  • OK, I am able to edit as an admin again. Here is what I changed (right or wrong):

    function allow_notAdmin() {
    		global $userdata;
    		get_currentuserinfo();
    		if (Allow_Category::allow_loggedIn()) {
    			// OLD: return ($userdata->user_level < 10);
    			// NEW:
    			return !is_super_admin($userdata->ID);
    		} else {
    			return true;
    		}
    	}

    Luke! Awesome addition to the community, man. Confirming that this fix works great in WP3.2/3.3.

    Thanks for posting…

    Glad to, go open source!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Allow Categories] Admin access broken in WordPress 3.3’ is closed to new replies.