mirror of
https://github.com/nextcloud/server.git
synced 2026-04-28 01:28:08 -04:00
fix: Subadmin can access self
Signed-off-by: Christopher Ng <chrng8@gmail.com>
This commit is contained in:
parent
50b82214e8
commit
ea5e27dcd8
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue