Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F33312195
D11148.1768813994.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
410 B
Referenced Files
None
Subscribers
None
D11148.1768813994.diff
View Options
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
@@ -1093,6 +1093,9 @@
}
function roleIsAdminRole(roleInfo: ?ClientLegacyRoleInfo | ?RoleInfo): boolean {
+ if (roleInfo?.specialRole === specialRoles.ADMIN_ROLE) {
+ return true;
+ }
return !!(roleInfo && !roleInfo.isDefault && roleInfo.name === 'Admins');
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Jan 19, 9:13 AM (16 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5955574
Default Alt Text
D11148.1768813994.diff (410 B)
Attached To
Mode
D11148: [lib] Update `roleIsAdminRole` to consider `roleInfo?.specialRole`
Attached
Detach File
Event Timeline
Log In to Comment