mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
Add LazyLocator
This commit is contained in:
@@ -46,9 +46,10 @@ class ConnectedUsers implements ControllerProviderInterface, ServiceProviderInte
|
||||
public function connect(Application $app)
|
||||
{
|
||||
$controllers = $this->createAuthenticatedCollection($app);
|
||||
$firewall = $this->getFirewall($app);
|
||||
|
||||
$controllers->before(function () use ($app) {
|
||||
$app['firewall']->requireAccessToModule('Admin');
|
||||
$controllers->before(function () use ($firewall) {
|
||||
$firewall->requireAccessToModule('Admin');
|
||||
});
|
||||
|
||||
$controllers->get('/', 'controller.admin.connected-users:listConnectedUsers')
|
||||
|
Reference in New Issue
Block a user