Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 376-378 (lines=3) @@
373
374
		$targetUser = $this->userManager->get($userId);
375
376
		if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) {
377
			throw new OCSException('', 101);
378
		}
379
380
		// If not permitted
381
		$subAdminManager = $this->groupManager->getSubAdmin();
@@ 431-433 (lines=3) @@
428
		$currentLoggedInUser = $this->userSession->getUser();
429
430
		$targetUser = $this->userManager->get($userId);
431
		if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) {
432
			throw new OCSException('', 101);
433
		}
434
435
		// If not permitted
436
		$subAdminManager = $this->groupManager->getSubAdmin();