Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3397936
D10990.id36863.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
902 B
Referenced Files
None
Subscribers
None
D10990.id36863.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
@@ -845,6 +845,11 @@
permissions: filterThreadPermissions(role.permissions),
}))(serverThreadInfo.roles);
+ const rolesWithoutSpecialRoleField = _mapValues(role => {
+ const { specialRole, ...roleSansSpecialRole } = role;
+ return roleSansSpecialRole;
+ })(rolesWithFilteredThreadPermissions);
+
let rawThreadInfo: any = {
id: serverThreadInfo.id,
type: serverThreadInfo.type,
@@ -854,7 +859,7 @@
creationTime: serverThreadInfo.creationTime,
parentThreadID: serverThreadInfo.parentThreadID,
members,
- roles: rolesWithFilteredThreadPermissions,
+ roles: rolesWithoutSpecialRoleField,
currentUser,
repliesCount: serverThreadInfo.repliesCount,
containingThreadID: serverThreadInfo.containingThreadID,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 2, 8:05 PM (21 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2608792
Default Alt Text
D10990.id36863.diff (902 B)
Attached To
Mode
D10990: [lib] Add `rolesWithoutSpecialRoleField` filter to `rawThreadInfoFromServerThreadInfo`
Attached
Detach File
Event Timeline
Log In to Comment