Code Duplication    Length = 3-3 lines in 2 locations

apps/provisioning_api/lib/Controller/UsersController.php 2 locations

@@ 569-571 (lines=3) @@
566
567
		$targetUser = $this->userManager->get($userId);
568
569
		if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) {
570
			throw new OCSException('', 101);
571
		}
572
573
		// If not permitted
574
		$subAdminManager = $this->groupManager->getSubAdmin();
@@ 623-625 (lines=3) @@
620
		$currentLoggedInUser = $this->userSession->getUser();
621
622
		$targetUser = $this->userManager->get($userId);
623
		if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) {
624
			throw new OCSException('', 101);
625
		}
626
627
		// If not permitted
628
		$subAdminManager = $this->groupManager->getSubAdmin();