aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/user_ldap/lib/Service/UpdateGroupsService.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/apps/user_ldap/lib/Service/UpdateGroupsService.php b/apps/user_ldap/lib/Service/UpdateGroupsService.php
index ea707c7c9d8..faee092a372 100644
--- a/apps/user_ldap/lib/Service/UpdateGroupsService.php
+++ b/apps/user_ldap/lib/Service/UpdateGroupsService.php
@@ -38,7 +38,6 @@ use OCA\User_LDAP\Db\GroupMembershipMapper;
use OCA\User_LDAP\Group_Proxy;
use OCP\DB\Exception;
use OCP\EventDispatcher\IEventDispatcher;
-use OCP\Group\Events\GroupCreatedEvent;
use OCP\Group\Events\UserAddedEvent;
use OCP\Group\Events\UserRemovedEvent;
use OCP\IGroup;
@@ -151,9 +150,6 @@ class UpdateGroupsService {
$users = $this->groupBackend->usersInGroup($createdGroup);
$groupObject = $this->groupManager->get($createdGroup);
- if ($groupObject instanceof IGroup) {
- $this->dispatcher->dispatchTyped(new GroupCreatedEvent($groupObject));
- }
foreach ($users as $user) {
$this->groupMembershipMapper->insert(GroupMembership::fromParams(['groupid' => $createdGroup,'userid' => $user]));
if ($groupObject instanceof IGroup) {
@@ -188,8 +184,6 @@ class UpdateGroupsService {
}
}
- //TODO find a way to dispatch GroupDeletedEvent
-
$this->logger->info(
'service "updateGroups" – groups {removedGroups} were removed.',
[