mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +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:
@@ -222,7 +222,7 @@ class DataboxesController extends Controller
|
||||
|
||||
$this->app['phraseanet.appbox']->get_connection()->beginTransaction();
|
||||
$base = \databox::mount($this->app, $hostname, $port, $user, $password, $dbName);
|
||||
$base->registerAdmin($this->app['authentication']->getUser());
|
||||
$base->registerAdmin($this->app->getAuthenticatedUser());
|
||||
$this->app['phraseanet.appbox']->get_connection()->commit();
|
||||
|
||||
return $this->app->redirectPath('admin_database', [
|
||||
|
Reference in New Issue
Block a user