public link config is also for non admins

This commit is contained in:
Robin Appelman 2011-06-22 12:40:13 +02:00
parent 4f6ea7e648
commit c0af177223
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ require( 'template.php' );
// Check if we are a user // 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" )); header( "Location: ".OC_HELPER::linkTo( "index.php" ));
exit(); exit();
} }