mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Avoid exception driven logic
This commit is contained in:
@@ -27,6 +27,8 @@ class Fields implements ControllerProviderInterface
|
||||
|
||||
$app['admin.fields.controller'] = $this;
|
||||
|
||||
$app['firewall']->addMandatoryAuthentication($controllers);
|
||||
|
||||
$controllers->before(function (Request $request) use ($app) {
|
||||
$app['firewall']
|
||||
->requireAccessToModule('admin')
|
||||
|
Reference in New Issue
Block a user