diff --git a/apps/files_publiclink/admin.php b/apps/files_publiclink/admin.php index a48076b4d42b5ea5ca0d7aeb1d76a7d837282768..afb726da3128f0dcd55eee9ba66457a78b5cfbc4 100644 --- a/apps/files_publiclink/admin.php +++ b/apps/files_publiclink/admin.php @@ -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(); }