mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Update controllers
This commit is contained in:
@@ -29,8 +29,13 @@ class Dashboard implements ControllerProviderInterface
|
||||
$controllers = $app['controllers_factory'];
|
||||
|
||||
$controllers->before(function(Request $request) use ($app) {
|
||||
return $app['firewall']->requireAdmin($app);
|
||||
});
|
||||
|
||||
$response = $app['firewall']->requireAdmin();
|
||||
|
||||
if ($response instanceof Response) {
|
||||
return $response;
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Get admin dashboard
|
||||
|
Reference in New Issue
Block a user