mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-24 02:13:15 +00:00
@@ -653,11 +653,14 @@ class SearchEngineOptions
|
||||
}
|
||||
|
||||
$bas = array_filter($bas, function ($collection) use ($app) {
|
||||
if($collection !== null) {
|
||||
if ($app['authentication']->isAuthenticated()) {
|
||||
return $app['authentication']->getUser()->ACL()->has_access_to_base($collection->get_base_id());
|
||||
} else {
|
||||
return in_array($collection, $app->getOpenCollections());
|
||||
}
|
||||
}
|
||||
return false; // CollectionNotFound
|
||||
});
|
||||
|
||||
$databoxes = array();
|
||||
|
||||
@@ -760,9 +760,9 @@ $(document).ready(function () {
|
||||
var $this = $(this);
|
||||
var $record_types = $('#recordtype_sel');
|
||||
if ($this.hasClass('mode_type_reg')) {
|
||||
$record_types.attr('disabled', true);
|
||||
$record_types.hide();
|
||||
} else {
|
||||
$record_types.removeAttr('disabled');
|
||||
$record_types.show();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user