Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3334214
D13834.id45526.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
512 B
Referenced Files
None
Subscribers
None
D13834.id45526.diff
View Options
diff --git a/keyserver/src/updaters/thread-updaters.js b/keyserver/src/updaters/thread-updaters.js
--- a/keyserver/src/updaters/thread-updaters.js
+++ b/keyserver/src/updaters/thread-updaters.js
@@ -114,7 +114,7 @@
);
// Ensure that there will always still be at least one admin in a community
- if (adminRoleID) {
+ if (adminRoleID && adminRoleID !== request.role) {
const memberRoles = memberIDs.map(
memberID =>
threadInfo.members.find(member => member.id === memberID)?.role,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 6:30 AM (18 h, 1 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2559430
Default Alt Text
D13834.id45526.diff (512 B)
Attached To
Mode
D13834: [keyserver] Run num admin change checks in updateRole only if intended role is not an admin
Attached
Detach File
Event Timeline
Log In to Comment