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) {
|
$bas = array_filter($bas, function ($collection) use ($app) {
|
||||||
if ($app['authentication']->isAuthenticated()) {
|
if($collection !== null) {
|
||||||
return $app['authentication']->getUser()->ACL()->has_access_to_base($collection->get_base_id());
|
if ($app['authentication']->isAuthenticated()) {
|
||||||
} else {
|
return $app['authentication']->getUser()->ACL()->has_access_to_base($collection->get_base_id());
|
||||||
return in_array($collection, $app->getOpenCollections());
|
} else {
|
||||||
|
return in_array($collection, $app->getOpenCollections());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return false; // CollectionNotFound
|
||||||
});
|
});
|
||||||
|
|
||||||
$databoxes = array();
|
$databoxes = array();
|
||||||
|
|||||||
@@ -760,9 +760,9 @@ $(document).ready(function () {
|
|||||||
var $this = $(this);
|
var $this = $(this);
|
||||||
var $record_types = $('#recordtype_sel');
|
var $record_types = $('#recordtype_sel');
|
||||||
if ($this.hasClass('mode_type_reg')) {
|
if ($this.hasClass('mode_type_reg')) {
|
||||||
$record_types.attr('disabled', true);
|
$record_types.hide();
|
||||||
} else {
|
} else {
|
||||||
$record_types.removeAttr('disabled');
|
$record_types.show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user