Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 438-440 (lines=3) @@
435
436
		$targetUser = $this->userManager->get($userId);
437
438
		if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) {
439
			throw new OCSException('', 101);
440
		}
441
442
		// If not permitted
443
		$subAdminManager = $this->groupManager->getSubAdmin();
@@ 493-495 (lines=3) @@
490
		$currentLoggedInUser = $this->userSession->getUser();
491
492
		$targetUser = $this->userManager->get($userId);
493
		if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) {
494
			throw new OCSException('', 101);
495
		}
496
497
		// If not permitted
498
		$subAdminManager = $this->groupManager->getSubAdmin();