Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 323-325 (lines=3) @@
320
321
		$targetUser = $this->userManager->get($userId);
322
323
		if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) {
324
			throw new OCSException('', 101);
325
		}
326
327
		// If not permitted
328
		$subAdminManager = $this->groupManager->getSubAdmin();
@@ 372-374 (lines=3) @@
369
		$currentLoggedInUser = $this->userSession->getUser();
370
371
		$targetUser = $this->userManager->get($userId);
372
		if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) {
373
			throw new OCSException('', 101);
374
		}
375
376
		// If not permitted
377
		$subAdminManager = $this->groupManager->getSubAdmin();