MCPcopy Create free account
hub / github.com/bytebase/bytebase / getViewPermission

Function getViewPermission

frontend/src/react/pages/settings/UsersPage.tsx:193–202  ·  view source on GitHub ↗
(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) {

Callers 1

UserTableFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected