Page MenuHomePhabricator

D9841.id33134.diff
No OneTemporary

D9841.id33134.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
@@ -1304,7 +1304,11 @@
}
function threadMemberHasPermission(
- threadInfo: ServerThreadInfo | RawThreadInfo | ThreadInfo,
+ threadInfo:
+ | ServerThreadInfo
+ | RawThreadInfo
+ | ThreadInfo
+ | MinimallyEncodedRawThreadInfo,
memberID: string,
permission: ThreadPermission,
): boolean {
@@ -1312,6 +1316,9 @@
if (member.id !== memberID) {
continue;
}
+ if (member.minimallyEncoded) {
+ return hasPermission(member.permissions, permission);
+ }
return permissionLookup(member.permissions, permission);
}
return false;

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 15, 10:01 PM (20 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2495617
Default Alt Text
D9841.id33134.diff (716 B)

Event Timeline