Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3104469
D13834.id45484.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.id45484.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
Thu, Oct 31, 5:18 PM (20 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2393449
Default Alt Text
D13834.id45484.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