mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Add getAuthenticator usage
Replace $app['authentication']->getUser() by $app->getAuthenticatedUser() replace twig app['authentication'].getUser() with corresponding method
This commit is contained in:
@@ -128,7 +128,7 @@ class DashboardController extends Controller
|
||||
$this->app->abort(400, '"admins" parameter must contains at least one value.');
|
||||
}
|
||||
/** @var Authenticator $authenticator */
|
||||
$authenticator = $this->app['authentication'];
|
||||
$authenticator = $this->app->getAuthenticator();
|
||||
if (!in_array($authenticator->getUser()->getId(), $admins)) {
|
||||
$admins[] = $authenticator->getUser()->getId();
|
||||
}
|
||||
|
Reference in New Issue
Block a user