public link config is also for non admins
This commit is contained in:
parent
4f6ea7e648
commit
c0af177223
|
@ -29,7 +29,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()){
|
||||
header( "Location: ".OC_HELPER::linkTo( "index.php" ));
|
||||
exit();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue