Page MenuHomePhabricator

[keyserver] Update existing checks on isDefault in invite-link-creator.js
AbandonedPublic

Authored by atul on Nov 30 2023, 1:21 PM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 8 2024, 11:20 PM
Unknown Object (File)
Apr 8 2024, 11:20 PM
Unknown Object (File)
Apr 8 2024, 11:20 PM
Unknown Object (File)
Feb 23 2024, 11:25 PM
Unknown Object (File)
Feb 23 2024, 11:25 PM
Unknown Object (File)
Feb 23 2024, 9:01 PM
Unknown Object (File)
Feb 16 2024, 3:30 AM
Unknown Object (File)
Dec 20 2023, 12:02 AM
Subscribers

Details

Reviewers
ginsu
tomek
rohan
Summary

We now want to make sure that we get rid of checks on role.isDefault and replace them with checks on role.specialRole:

  • For default roles, this is `role.specialRole === ${specialRoles.DEFAULT_ROLE}
  • For admin roles, this is `role.specialRole === ${specialRoles.ADMIN_ROLE}

Part of ENG-5993

This diff handles invite-link-creator.js

Depends on D10116

Test Plan

Confirmed the use of roleIsDefaultRole had no change on the results in the code

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

rohan held this revision as a draft.
rohan published this revision for review.Nov 30 2023, 1:34 PM
This revision is now accepted and ready to land.Dec 4 2023, 12:27 AM
atul edited reviewers, added: rohan; removed: atul.

No longer relevant since we have separate server and client types. In the future we will flip things when we have minimally encoded permissions in memberships table, at which point we can change the logic here.