diff options
author | Christopher Ng <chrng8@gmail.com> | 2024-10-04 16:28:23 -0700 |
---|---|---|
committer | Christopher Ng <chrng8@gmail.com> | 2024-10-08 16:24:40 -0700 |
commit | ea5e27dcd89820c9939598d53628f9d0f9988ceb (patch) | |
tree | 81b094bd9afd59006c228bf3f5ba7e48709bef8b /lib | |
parent | 50b82214e8c37a915f16412174365a4bfb2ea6c2 (diff) | |
download | nextcloud-server-ea5e27dcd89820c9939598d53628f9d0f9988ceb.tar.gz nextcloud-server-ea5e27dcd89820c9939598d53628f9d0f9988ceb.zip |
fix: Subadmin can access self
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/SubAdmin.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/SubAdmin.php b/lib/private/SubAdmin.php index c025ab7b012..335e901a321 100644 --- a/lib/private/SubAdmin.php +++ b/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; } |