mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
Fix Cs
This commit is contained in:
@@ -930,8 +930,8 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
|
|
||||||
if (is_array($params['bases'])) {
|
if (is_array($params['bases'])) {
|
||||||
$bas = array_map(function($base_id) use ($app) {
|
$bas = array_map(function($base_id) use ($app) {
|
||||||
return \collection::get_from_base_id($app, $base_id);
|
return \collection::get_from_base_id($app, $base_id);
|
||||||
}, $params['bases']);
|
}, $params['bases']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$databoxes = array();
|
$databoxes = array();
|
||||||
@@ -944,8 +944,8 @@ class API_V1_adapter extends API_V1_Abstract
|
|||||||
|
|
||||||
if ($this->app['phraseanet.user']->ACL()->has_right('modifyrecord')) {
|
if ($this->app['phraseanet.user']->ACL()->has_right('modifyrecord')) {
|
||||||
$BF = array_filter($bas, function($collection) use ($app) {
|
$BF = array_filter($bas, function($collection) use ($app) {
|
||||||
return $app['phraseanet.user']->ACL()->has_right_on_base($collection->get_base_id(), 'canmodifrecord');
|
return $app['phraseanet.user']->ACL()->has_right_on_base($collection->get_base_id(), 'canmodifrecord');
|
||||||
});
|
});
|
||||||
|
|
||||||
$options->allowBusinessFieldsOn($BF);
|
$options->allowBusinessFieldsOn($BF);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user