diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-04-15 18:13:49 +0200 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-04-15 18:13:49 +0200 |
commit | 3c01e307484a2738ed0314b7acf829cb7c9d8cdb (patch) | |
tree | 4bec2b3037e4c1f3732f302f4c8a6235a5da83f5 /admin/system.php | |
parent | 149793f2e7c701434698a1e6f8af251fe786d320 (diff) | |
download | nextcloud-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.php | 2 |
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(); } |