Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 327-329 (lines=3) @@
324
325
		$targetUser = $this->userManager->get($userId);
326
327
		if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) {
328
			throw new OCSException('', 101);
329
		}
330
331
		// If not permitted
332
		$subAdminManager = $this->groupManager->getSubAdmin();
@@ 382-384 (lines=3) @@
379
		$currentLoggedInUser = $this->userSession->getUser();
380
381
		$targetUser = $this->userManager->get($userId);
382
		if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) {
383
			throw new OCSException('', 101);
384
		}
385
386
		// If not permitted
387
		$subAdminManager = $this->groupManager->getSubAdmin();