The MU forums have moved to WordPress.org

Admin privliges disapperd (9 posts)

  1. Qaiser
    Member
    Posted 14 years ago #

    I don't have the admin privliges for my admin accout, can not create/edit blogs or user and there is no option for plugin available, and site admin button is also not available

  2. andrea_r
    Moderator
    Posted 14 years ago #

    Did you upgrade recently? Perhaps using the package for single WP? :)

  3. Qaiser
    Member
    Posted 14 years ago #

    i just reuploaded the new wmpu keeping the old database, and problem still exist,it shows blogs, but still no privliges

  4. Qaiser
    Member
    Posted 14 years ago #

    how to enable plugin using database??

  5. Qaiser
    Member
    Posted 14 years ago #

    please help me out

  6. Qaiser
    Member
    Posted 14 years ago #

    it is problem with the is_site_admin() function, which is always returning false for me, why??

  7. Qaiser
    Member
    Posted 14 years ago #

    it just reads the whole function and return the last false;

    so the problem is with

    $site_admins = get_site_option( 'site_admins', array('admin') );
    	if( is_array( $site_admins ) && in_array( $user_login, $site_admins ) )
    		return true;

    how to rewrite it and i am the only admin, so i want it to check only my name and not the whole array

  8. andrea_r
    Moderator
    Posted 14 years ago #

    Are you logging in as the user "admin" or did you change it?

  9. Qaiser
    Member
    Posted 14 years ago #

    i added follwing lines

    if($user_ID == 1 || $user_email == 'my email')
    return true;

    and it is working fine now

About this Topic