fix: Subadmin can access self

Signed-off-by: Christopher Ng <chrng8@gmail.com>
pull/48538/head
Christopher Ng 1 year ago
parent 50b82214e8
commit ea5e27dcd8
  1. 3
      lib/private/SubAdmin.php

@ -259,6 +259,9 @@ class SubAdmin extends PublicEmitter implements ISubAdmin {
* @return bool
*/
public function isUserAccessible(IUser $subadmin, IUser $user): bool {
if ($subadmin->getUID() === $user->getUID()) {
return true;
}
if (!$this->isSubAdmin($subadmin)) {
return false;
}

Loading…
Cancel
Save