Admin pages are for admins only, right?

This commit is contained in:
Jakob Sack 2011-03-02 23:16:02 +01:00
parent 61ffa182ee
commit ddc2a70de9
4 changed files with 4 additions and 4 deletions

View File

@ -23,7 +23,7 @@
require_once('../lib/base.php'); require_once('../lib/base.php');
oc_require( 'template.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" )); header( "Location: ".OC_UTIL::linkto( "index.php" ));
exit(); exit();
} }

View File

@ -23,7 +23,7 @@
require_once('../lib/base.php'); require_once('../lib/base.php');
oc_require( 'template.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" )); header( "Location: ".OC_UTIL::linkto( "index.php" ));
exit(); exit();
} }

View File

@ -23,7 +23,7 @@
require_once('../lib/base.php'); require_once('../lib/base.php');
oc_require( 'template.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" )); header( "Location: ".OC_UTIL::linkto( "index.php" ));
exit(); exit();
} }

View File

@ -23,7 +23,7 @@
require_once('../lib/base.php'); require_once('../lib/base.php');
oc_require( 'template.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" )); header( "Location: ".OC_UTIL::linkto( "index.php" ));
exit(); exit();
} }