mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Fix users right
This commit is contained in:
@@ -625,7 +625,12 @@ class SearchEngineOptions
|
||||
|
||||
if (is_array($request->get('bases'))) {
|
||||
$bas = array_map(function ($base_id) use ($app) {
|
||||
return \collection::get_from_base_id($app, $base_id);
|
||||
try {
|
||||
return \collection::get_from_base_id($app, $base_id);
|
||||
} catch (\Exception_Databox_CollectionNotFound $e) {
|
||||
return null;
|
||||
}
|
||||
|
||||
}, $request->get('bases'));
|
||||
} elseif (!$app['authentication']->isAuthenticated()) {
|
||||
$bas = $app->getOpenCollections();
|
||||
|
Reference in New Issue
Block a user