summaryrefslogtreecommitdiffstats
path: root/admin/system.php
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-04-15 18:13:49 +0200
committerJakob Sack <kde@jakobsack.de>2011-04-15 18:13:49 +0200
commit3c01e307484a2738ed0314b7acf829cb7c9d8cdb (patch)
tree4bec2b3037e4c1f3732f302f4c8a6235a5da83f5 /admin/system.php
parent149793f2e7c701434698a1e6f8af251fe786d320 (diff)
downloadnextcloud-server-3c01e307484a2738ed0314b7acf829cb7c9d8cdb.tar.gz
nextcloud-server-3c01e307484a2738ed0314b7acf829cb7c9d8cdb.zip
Try to make owncloud working again
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 5d8ac140511..36c9229d2f5 100644
--- a/admin/system.php
+++ b/admin/system.php
@@ -23,7 +23,7 @@
require_once('../lib/base.php');
oc_require( 'template.php' );
-if( !OC_USER::isLoggedIn() || !OC_USER::ingroup( $_SESSION['username'], 'admin' )){
+if( !OC_USER::isLoggedIn() || !OC_GROUP::inGroup( $_SESSION['user_id'], 'admin' )){
header( "Location: ".OC_HELPER::linkTo( "index.php" ));
exit();
}