|
@@ 483-485 (lines=3) @@
|
| 480 |
|
|
| 481 |
|
$targetUser = $this->userManager->get($userId); |
| 482 |
|
|
| 483 |
|
if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) { |
| 484 |
|
throw new OCSException('', 101); |
| 485 |
|
} |
| 486 |
|
|
| 487 |
|
// If not permitted |
| 488 |
|
$subAdminManager = $this->groupManager->getSubAdmin(); |
|
@@ 538-540 (lines=3) @@
|
| 535 |
|
$currentLoggedInUser = $this->userSession->getUser(); |
| 536 |
|
|
| 537 |
|
$targetUser = $this->userManager->get($userId); |
| 538 |
|
if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) { |
| 539 |
|
throw new OCSException('', 101); |
| 540 |
|
} |
| 541 |
|
|
| 542 |
|
// If not permitted |
| 543 |
|
$subAdminManager = $this->groupManager->getSubAdmin(); |