diff options
author | Jakob Sack <kde@jakobsack.de> | 2011-03-02 23:16:02 +0100 |
---|---|---|
committer | Jakob Sack <kde@jakobsack.de> | 2011-03-02 23:16:02 +0100 |
commit | ddc2a70de9faff2075dd18951fdbf5edde28aa22 (patch) | |
tree | f42033827091add848aa81cd65eb09872df3ed03 /admin | |
parent | 61ffa182ee90e1a08538f438fb5528e32b3cf70a (diff) | |
download | nextcloud-server-ddc2a70de9faff2075dd18951fdbf5edde28aa22.tar.gz nextcloud-server-ddc2a70de9faff2075dd18951fdbf5edde28aa22.zip |
Admin pages are for admins only, right?
Diffstat (limited to 'admin')
-rw-r--r-- | admin/index.php | 2 | ||||
-rw-r--r-- | admin/plugins.php | 2 | ||||
-rw-r--r-- | admin/system.php | 2 | ||||
-rw-r--r-- | admin/users.php | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/admin/index.php b/admin/index.php index a9cc079c875..6e79f43ddf6 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()){ +if( !OC_USER::isLoggedIn() || !OC_USER::ingroup( $_SESSION['username'], 'admin' )){ header( "Location: ".OC_UTIL::linkto( "index.php" )); exit(); } diff --git a/admin/plugins.php b/admin/plugins.php index 36139edab04..b281115e124 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()){ +if( !OC_USER::isLoggedIn() || !OC_USER::ingroup( $_SESSION['username'], 'admin' )){ header( "Location: ".OC_UTIL::linkto( "index.php" )); exit(); } diff --git a/admin/system.php b/admin/system.php index a9cc079c875..6e79f43ddf6 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()){ +if( !OC_USER::isLoggedIn() || !OC_USER::ingroup( $_SESSION['username'], 'admin' )){ header( "Location: ".OC_UTIL::linkto( "index.php" )); exit(); } diff --git a/admin/users.php b/admin/users.php index 77be508914b..e3a9ab1418a 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()){ +if( !OC_USER::isLoggedIn() || !OC_USER::ingroup( $_SESSION['username'], 'admin' )){ header( "Location: ".OC_UTIL::linkto( "index.php" )); exit(); } |