Admin pages are for admins only, right?
This commit is contained in:
parent
61ffa182ee
commit
ddc2a70de9
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue