Function
getViewPermission
(accountType: AccountType)
Source from the content-addressed store, hash-verified
| 191 | }; |
| 192 | |
| 193 | const getViewPermission = (accountType: AccountType) => { |
| 194 | switch (accountType) { |
| 195 | case AccountType.SERVICE_ACCOUNT: |
| 196 | return "bb.serviceAccounts.get"; |
| 197 | case AccountType.WORKLOAD_IDENTITY: |
| 198 | return "bb.workloadIdentities.get"; |
| 199 | default: |
| 200 | return "bb.users.get"; |
| 201 | } |
| 202 | }; |
| 203 | |
| 204 | const getUndeletePermission = (accountType: AccountType) => { |
| 205 | switch (accountType) { |
Tested by
no test coverage detected