|
@@ 364-366 (lines=3) @@
|
| 361 |
|
|
| 362 |
|
$targetUser = $this->userManager->get($userId); |
| 363 |
|
|
| 364 |
|
if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) { |
| 365 |
|
throw new OCSException('', 101); |
| 366 |
|
} |
| 367 |
|
|
| 368 |
|
// If not permitted |
| 369 |
|
$subAdminManager = $this->groupManager->getSubAdmin(); |
|
@@ 419-421 (lines=3) @@
|
| 416 |
|
$currentLoggedInUser = $this->userSession->getUser(); |
| 417 |
|
|
| 418 |
|
$targetUser = $this->userManager->get($userId); |
| 419 |
|
if($targetUser === null || $targetUser->getUID() === $currentLoggedInUser->getUID()) { |
| 420 |
|
throw new OCSException('', 101); |
| 421 |
|
} |
| 422 |
|
|
| 423 |
|
// If not permitted |
| 424 |
|
$subAdminManager = $this->groupManager->getSubAdmin(); |