Skip to content

Commit

Permalink
Support delegated admin
Browse files Browse the repository at this point in the history
Signed-off-by: cdammanintopix <63319198+cdammanintopix@users.noreply.github.com>
  • Loading branch information
cdammanintopix authored and backportbot[bot] committed Nov 19, 2024
1 parent 5f50e34 commit 4a8efc2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Controller/SettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public function impersonate(string $userId): JSONResponse {
}

if (!$this->groupManager->isAdmin($impersonator->getUID())
&& !$this->groupManager->isDelegatedAdmin($impersonator->getUID())
&& !$this->groupManager->getSubAdmin()->isUserAccessible($impersonator, $impersonatee)) {
return new JSONResponse(
[
Expand Down

0 comments on commit 4a8efc2

Please sign in to comment.