Page MenuHomePhabricator

D9845.diff
No OneTemporary

D9845.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
@@ -132,10 +132,8 @@
);
if (threadInfo.minimallyEncoded) {
return hasPermission(threadInfo.currentUser.permissions, permission);
- } else if (!threadInfo.currentUser.permissions[permission]) {
- return false;
}
- return threadInfo.currentUser.permissions[permission].value;
+ return permissionLookup(threadInfo.currentUser.permissions, permission);
}
function viewerIsMember(

File Metadata

Mime Type
text/plain
Expires
Tue, Dec 24, 5:59 AM (20 h, 12 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2698620
Default Alt Text
D9845.diff (536 B)

Event Timeline