aboutsummaryrefslogtreecommitdiffstats
path: root/admin/users.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/users.php')
-rw-r--r--admin/users.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/users.php b/admin/users.php
index e44feb40fe2..0848d57162a 100644
--- a/admin/users.php
+++ b/admin/users.php
@@ -23,7 +23,7 @@
require_once('../lib/base.php');
require( 'template.php' );
-if( !OC_USER::isLoggedIn() || !OC_GROUP::inGroup( $_SESSION['user_id'], 'admin' )){
+if( !OC_USER::isLoggedIn() || !OC_GROUP::inGroup( OC_USER::getUser(), 'admin' )){
header( "Location: ".OC_HELPER::linkTo( "index.php" ));
exit();
}