summaryrefslogtreecommitdiffstats
path: root/admin/system.php
diff options
context:
space:
mode:
Diffstat (limited to 'admin/system.php')
-rw-r--r--admin/system.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/system.php b/admin/system.php
index 310979295f0..284509144ee 100644
--- a/admin/system.php
+++ b/admin/system.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();
}