MCPcopy Create free account
hub / github.com/actiontech/dtle / roleAccess

Function roleAccess

api/handler/v2/role.go:190–195  ·  view source on GitHub ↗

The platform administrator can operate all roles the tenant administrator can only operate the roles under the current tenant

(currentTenant, operationTenant string)

Source from the content-addressed store, hash-verified

188// The platform administrator can operate all roles
189// the tenant administrator can only operate the roles under the current tenant
190func roleAccess(currentTenant, operationTenant string) bool {
191 if currentTenant == common.DefaultAdminTenant || currentTenant == operationTenant {
192 return true
193 }
194 return false
195}

Callers 3

CreateRoleV2Function · 0.85
UpdateRoleV2Function · 0.85
DeleteRoleV2Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected