aboutsummaryrefslogtreecommitdiffstats
path: root/admin
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
parent149793f2e7c701434698a1e6f8af251fe786d320 (diff)
downloadnextcloud-server-3c01e307484a2738ed0314b7acf829cb7c9d8cdb.tar.gz
nextcloud-server-3c01e307484a2738ed0314b7acf829cb7c9d8cdb.zip
Try to make owncloud working again
Diffstat (limited to 'admin')
-rw-r--r--admin/appinfo/app.php2
-rw-r--r--admin/index.php2
-rw-r--r--admin/plugins.php2
-rw-r--r--admin/system.php2
-rw-r--r--admin/users.php2
5 files changed, 5 insertions, 5 deletions
diff --git a/admin/appinfo/app.php b/admin/appinfo/app.php
index f4a36160936..a0ee0a0e55b 100644
--- a/admin/appinfo/app.php
+++ b/admin/appinfo/app.php
@@ -1,7 +1,7 @@
<?php
OC_APP::register( array( "order" => 1, "id" => "admin", "name" => "Administration" ));
-if( OC_USER::ingroup( $_SESSION['username'], 'admin' ))
+if( OC_GROUP::inGroup( $_SESSION['user_id'], 'admin' ))
{
OC_APP::addNavigationEntry( array( "id" => "admin_index", "order" => 1, "href" => OC_HELPER::linkTo( "admin", "index.php" ), "icon" => OC_HELPER::imagePath( "admin", "navicon.png" ), "name" => "Administration" ));
}
diff --git a/admin/index.php b/admin/index.php
index 5d8ac140511..36c9229d2f5 100644
--- a/admin/index.php
+++ b/admin/index.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();
}
diff --git a/admin/plugins.php b/admin/plugins.php
index d281f897ecb..ae6d35c3227 100644
--- a/admin/plugins.php
+++ b/admin/plugins.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();
}
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();
}
diff --git a/admin/users.php b/admin/users.php
index d4eebb44178..cfcb7a253fb 100644
--- a/admin/users.php
+++ b/admin/users.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();
}