r2784 - authenticate(): lookup admin userid in correct place
authorDenis Ovsienko <infrastation@yandex.ru>
Wed, 20 May 2009 16:56:24 +0000 (16:56 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Wed, 20 May 2009 16:56:24 +0000 (16:56 +0000)
inc/auth.php

index 77865fe405ffe65bbc272d78133fbd9b06093e8e..87cfb57644738088cc9d1bce4e1e2dd3d6cb3f09 100644 (file)
@@ -68,7 +68,7 @@ function authenticate ()
                case ('httpd' == $user_auth_src):
                        return;
                // When using LDAP, leave a mean to fix things. Admin user is always authenticated locally.
-               case ('database' == $user_auth_src or $remote_userid == 1):
+               case ('database' == $user_auth_src or $userinfo['user_id'] == 1):
                        if (authenticated_via_database ($userinfo, $_SERVER['PHP_AUTH_PW']))
                                return;
                        break;