diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-28 14:32:43 +0400 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-28 14:32:43 +0400 |
commit | 126f0ddf3c86b0a68873fdf0dff4a22b9b44f7cf (patch) | |
tree | d6b9a1ed704522955ec518afb02e3a346f7e1cce /lib/util.php | |
parent | b46c82069eccb7093e77d445100d377eb396c4fe (diff) |
we should check if a user is logged in before we check for admin privilege
Diffstat (limited to 'lib/util.php')
-rwxr-xr-x | lib/util.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php index 9ba1bdb0282..da2cba1b938 100755 --- a/lib/util.php +++ b/lib/util.php @@ -404,6 +404,7 @@ class OC_Util { * Check if the user is a admin, redirects to home if not */ public static function checkAdminUser() { + \OC_Util::checkLoggedIn(); if( !OC_User::isAdminUser(OC_User::getUser())) { header( 'Location: '.OC_Helper::linkToAbsolute( '', 'index.php' )); exit(); |