diff --git a/lib/GroupManager.php b/lib/GroupManager.php index 17ab71fe2..6b2d4149d 100644 --- a/lib/GroupManager.php +++ b/lib/GroupManager.php @@ -9,7 +9,6 @@ use OCA\User_SAML\Exceptions\GroupNotFoundException; use OCA\User_SAML\Exceptions\NonMigratableGroupException; -use OCA\User_SAML\Jobs\MigrateGroups; use OCP\BackgroundJob\IJobList; use OCP\EventDispatcher\IEventDispatcher; use OCP\Group\Events\BeforeGroupCreatedEvent; @@ -90,8 +89,6 @@ public function handleIncomingGroups(IUser $user, array $samlGroupNames): void { } $this->updateUserGroups($user, $samlGroupNames); - // TODO: drop following line with dropping NC 28 support - $this->evaluateGroupMigrations($samlGroupNames); } protected function updateUserGroups(IUser $user, array $samlGroupNames): void { @@ -223,15 +220,6 @@ protected function hasSamlBackend(IGroup $group): bool { return in_array('user_saml', $group->getBackendNames()); } - protected function evaluateGroupMigrations(array $groups): void { - $candidateInfo = $this->getCandidateInfoIfValid(); - if ($candidateInfo === null) { - return; - } - - $this->jobList->add(MigrateGroups::class, ['gids' => $groups]); - } - protected function isGroupInTransitionList(string $groupId): bool { $candidateInfo = $this->getCandidateInfoIfValid(); if (!$candidateInfo) {