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