diff --git a/lib/shared/thread-utils.js b/lib/shared/thread-utils.js --- a/lib/shared/thread-utils.js +++ b/lib/shared/thread-utils.js @@ -1114,6 +1114,18 @@ if (!threadInfo) { return false; } + let hasSpecialRoleFieldBeenEncountered = false; + for (const role of Object.values(threadInfo.roles)) { + if (role.specialRole === specialRoles.ADMIN_ROLE) { + return true; + } + if (role.specialRole !== undefined) { + hasSpecialRoleFieldBeenEncountered = true; + } + } + if (hasSpecialRoleFieldBeenEncountered) { + return false; + } return !!_find({ name: 'Admins' })(threadInfo.roles); }