Page MenuHomePhabricator

D10990.id36863.diff
No OneTemporary

D10990.id36863.diff

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

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)

Event Timeline