Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2013-10-28 14:32:43 +0400
committerThomas Müller <thomas.mueller@tmit.eu>2013-10-28 14:32:43 +0400
commit126f0ddf3c86b0a68873fdf0dff4a22b9b44f7cf (patch)
treed6b9a1ed704522955ec518afb02e3a346f7e1cce /lib/util.php
parentb46c82069eccb7093e77d445100d377eb396c4fe (diff)
we should check if a user is logged in before we check for admin privilege
Diffstat (limited to 'lib/util.php')
-rwxr-xr-xlib/util.php1
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();