summaryrefslogtreecommitdiffstats
path: root/files
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-06-22 12:50:57 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-06-22 12:50:57 +0200
commit83958ebd4be58c64b23a3e9535f4246faeff8f4a (patch)
tree169321f7bb32e315c6a33ce139b799efdc224da4 /files
parentc0af177223f5ebd74614b775121ea7f3497d25a5 (diff)
downloadnextcloud-server-83958ebd4be58c64b23a3e9535f4246faeff8f4a.tar.gz
nextcloud-server-83958ebd4be58c64b23a3e9535f4246faeff8f4a.zip
add oc_user::getUser to get the user id of the loggedin user
Diffstat (limited to 'files')
-rw-r--r--files/admin.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/admin.php b/files/admin.php
index 59b822468ed..5c9923aff86 100644
--- a/files/admin.php
+++ b/files/admin.php
@@ -28,7 +28,7 @@ require( 'template.php' );
// Check if we are a user
-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();
}