aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Group
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-10-28 21:53:04 +0100
committerMorris Jobke <hey@morrisjobke.de>2020-10-28 21:55:08 +0100
commite4f53ff91b985123b171dc23db8246c017af46f6 (patch)
tree0fa3b0ab3bc4cfda9c1c555b4085ef47b0b3549a /lib/private/Group
parentef382f541c42f719b8dd30a4e0e248ef1bc39c84 (diff)
downloadnextcloud-server-e4f53ff91b985123b171dc23db8246c017af46f6.tar.gz
nextcloud-server-e4f53ff91b985123b171dc23db8246c017af46f6.zip
Add typed events for adding and removing a subadmin
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'lib/private/Group')
-rw-r--r--lib/private/Group/Manager.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/Group/Manager.php b/lib/private/Group/Manager.php
index 6056bcdb3e3..3d7c1ff176f 100644
--- a/lib/private/Group/Manager.php
+++ b/lib/private/Group/Manager.php
@@ -41,6 +41,7 @@
namespace OC\Group;
use OC\Hooks\PublicEmitter;
+use OCP\EventDispatcher\IEventDispatcher;
use OCP\GroupInterface;
use OCP\IGroup;
use OCP\IGroupManager;
@@ -416,7 +417,8 @@ class Manager extends PublicEmitter implements IGroupManager {
$this->subAdmin = new \OC\SubAdmin(
$this->userManager,
$this,
- \OC::$server->getDatabaseConnection()
+ \OC::$server->getDatabaseConnection(),
+ \OC::$server->get(IEventDispatcher::class)
);
}