Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33031186
D13834.1768403065.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
512 B
Referenced Files
None
Subscribers
None
D13834.1768403065.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
Wed, Jan 14, 3:04 PM (7 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5932605
Default Alt Text
D13834.1768403065.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