Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 415-417 (lines=3) @@
412
413
		$targetUser = $this->userManager->get($userId);
414
415
		if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) {
416
			throw new OCSException('', 101);
417
		}
418
419
		// If not permitted
420
		$subAdminManager = $this->groupManager->getSubAdmin();
@@ 470-472 (lines=3) @@
467
		$currentLoggedInUser = $this->userSession->getUser();
468
469
		$targetUser = $this->userManager->get($userId);
470
		if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) {
471
			throw new OCSException('', 101);
472
		}
473
474
		// If not permitted
475
		$subAdminManager = $this->groupManager->getSubAdmin();