Page MenuHomePhabricator

[lib] Update `roleIsAdminRole` to consider `roleInfo?.specialRole`
ClosedPublic

Authored by atul on Feb 22 2024, 7:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 16, 1:59 PM
Unknown Object (File)
Mon, Sep 16, 1:59 PM
Unknown Object (File)
Mon, Sep 16, 1:58 PM
Unknown Object (File)
Mon, Sep 9, 11:50 PM
Unknown Object (File)
Aug 10 2024, 10:19 PM
Unknown Object (File)
Aug 10 2024, 7:05 PM
Unknown Object (File)
Jul 30 2024, 6:11 PM
Unknown Object (File)
Jul 28 2024, 6:58 AM
Subscribers

Details

Summary

Update the roleIsAdminRole utility to consider roleInfo?.specialRole field when handling clients where specialRole has been populated.

Note that this branch will be skipped because specialRole field is not yet set on clients.

Test Plan
  1. Hard code includeSpecialRoleFieldInRoles to true
  2. Check to see that specialRole field of roles are populated in ThreadStore
  3. Set a breakpoint and see that the branch is hit and function behaves as expected.

Diff Detail

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