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