mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Cleanup controllers
This commit is contained in:
@@ -71,7 +71,7 @@ class MoveCollection implements ControllerProviderInterface
|
||||
return $app->json($datas);
|
||||
}
|
||||
|
||||
if ( ! $user->ACL()->has_right_on_base($request->request->get('base_id'), 'canaddrecord')) {
|
||||
if (!$user->ACL()->has_right_on_base($request->request->get('base_id'), 'canaddrecord')) {
|
||||
$datas['message'] = sprintf(_("You do not have the permission to move records to %s"), \phrasea::bas_names($move->getBaseIdDestination(), $app));
|
||||
return $app->json($datas);
|
||||
}
|
||||
|
Reference in New Issue
Block a user