Page MenuHomePhabricator

[lib] Update `hasPermission` to check `KNOW_OF`
ClosedPublic

Authored by atul on Nov 13 2023, 12:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 4, 9:49 PM
Unknown Object (File)
Wed, Dec 4, 1:17 PM
Unknown Object (File)
Nov 16 2024, 8:43 PM
Unknown Object (File)
Nov 16 2024, 8:43 PM
Unknown Object (File)
Nov 16 2024, 8:43 PM
Unknown Object (File)
Nov 16 2024, 8:38 PM
Unknown Object (File)
Nov 14 2024, 11:25 PM
Unknown Object (File)
Nov 14 2024, 8:32 PM
Subscribers
None

Details

Summary

Context in this diff: https://phab.comm.dev/D9841


Depends on D9843

Test Plan

Introduced test case where hasPermission should've failed, and now does fail.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

lib/permissions/minimally-encoded-thread-permissions.js
124–126

Could alternatively AND the permissionBitmask and knowOfBitmask together before the check, but I think having two separate "JS conditions" would make things easier to debug

Open to going with that approach if preferred

atul published this revision for review.Nov 13 2023, 12:48 PM
This revision is now accepted and ready to land.Nov 13 2023, 12:49 PM