HomePhabricator
Diffusion Comm 437c6a11fb52

[lib] Introduce basic `permissionsToBitmask` and `hasPermission`

Description

[lib] Introduce basic permissionsToBitmask and hasPermission

Summary:
These utilities will be used to encode ThreadPermissions as minimally as possible.

Just starting with some utility functions and unit tests.

Test Plan: Naive unit tests pass, will add more.

Reviewers: ashoat, ginsu, tomek, rohan

Reviewed By: ashoat, tomek

Subscribers: wyilio

Differential Revision: https://phab.comm.dev/D9549

Details

Provenance
atulAuthored on Oct 19 2023, 2:26 PM
Reviewer
ashoat
Differential Revision
D9549: [lib] Introduce basic `permissionsToBitmask` and `hasPermission`
Parents
rCOMMab6b2a27f29b: Revert "[lib] Introduce basic `permissionsToBitmask` and `hasPermission`"
Branches
Unknown
Tags
Unknown