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 /files/admin.php | |
parent | 149793f2e7c701434698a1e6f8af251fe786d320 (diff) | |
download | nextcloud-server-3c01e307484a2738ed0314b7acf829cb7c9d8cdb.tar.gz nextcloud-server-3c01e307484a2738ed0314b7acf829cb7c9d8cdb.zip |
Try to make owncloud working again
Diffstat (limited to 'files/admin.php')
-rw-r--r-- | files/admin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/admin.php b/files/admin.php index 4c442c4b111..9470bcf90bd 100644 --- a/files/admin.php +++ b/files/admin.php @@ -27,7 +27,7 @@ require_once('../lib/base.php'); oc_require( 'template.php' ); // Check if we are a user -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(); } |