|
@@ 432-434 (lines=3) @@
|
| 429 |
|
|
| 430 |
|
$targetUser = $this->userManager->get($userId); |
| 431 |
|
|
| 432 |
|
if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) { |
| 433 |
|
throw new OCSException('', 101); |
| 434 |
|
} |
| 435 |
|
|
| 436 |
|
// If not permitted |
| 437 |
|
$subAdminManager = $this->groupManager->getSubAdmin(); |
|
@@ 487-489 (lines=3) @@
|
| 484 |
|
$currentLoggedInUser = $this->userSession->getUser(); |
| 485 |
|
|
| 486 |
|
$targetUser = $this->userManager->get($userId); |
| 487 |
|
if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) { |
| 488 |
|
throw new OCSException('', 101); |
| 489 |
|
} |
| 490 |
|
|
| 491 |
|
// If not permitted |
| 492 |
|
$subAdminManager = $this->groupManager->getSubAdmin(); |