Fix users right

This commit is contained in:
Nicolas Le Goff
2014-09-08 20:21:15 +02:00
parent b0b7a249b7
commit ab73febefd
7 changed files with 2017 additions and 1755 deletions

View File

@@ -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();