mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 06:23:18 +00:00
Remove User_Adapter
This commit is contained in:
@@ -60,9 +60,7 @@ class CreateCollection extends Command
|
||||
}
|
||||
|
||||
$app = $this->container;
|
||||
$this->container['manipulator.acl']->resetAdminRights(array_map(function ($id) use ($app) {
|
||||
return \User_Adapter::getInstance($id, $app);
|
||||
}, array_keys(\User_Adapter::get_sys_admins($this->container))));
|
||||
$this->container['manipulator.acl']->resetAdminRights($this->container['manipulator.user']->getRepository()->findAdmins());
|
||||
|
||||
$this->container['dispatcher']->dispatch(PhraseaEvents::COLLECTION_CREATE, new CollectionCreateEvent($new_collection));
|
||||
}
|
||||
|
Reference in New Issue
Block a user