|
@@ 536-538 (lines=3) @@
|
| 533 |
|
|
| 534 |
|
$targetUser = $this->userManager->get($userId); |
| 535 |
|
|
| 536 |
|
if ($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) { |
| 537 |
|
throw new OCSException('', 101); |
| 538 |
|
} |
| 539 |
|
|
| 540 |
|
// If not permitted |
| 541 |
|
$subAdminManager = $this->groupManager->getSubAdmin(); |
|
@@ 590-592 (lines=3) @@
|
| 587 |
|
$currentLoggedInUser = $this->userSession->getUser(); |
| 588 |
|
|
| 589 |
|
$targetUser = $this->userManager->get($userId); |
| 590 |
|
if ($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) { |
| 591 |
|
throw new OCSException('', 101); |
| 592 |
|
} |
| 593 |
|
|
| 594 |
|
// If not permitted |
| 595 |
|
$subAdminManager = $this->groupManager->getSubAdmin(); |