(username, orgGUID string, role models.Role)
| 235 | } |
| 236 | |
| 237 | func (repo CloudControllerUserRepository) UnsetOrgRoleByUsername(username, orgGUID string, role models.Role) error { |
| 238 | rolePath, err := rolePath(role) |
| 239 | if err != nil { |
| 240 | return err |
| 241 | } |
| 242 | |
| 243 | path := fmt.Sprintf("%s/v2/organizations/%s/%s", repo.config.APIEndpoint(), orgGUID, rolePath) |
| 244 | |
| 245 | return repo.callAPI("DELETE", path, usernamePayload(username)) |
| 246 | } |
| 247 | |
| 248 | func (repo CloudControllerUserRepository) UnsetSpaceRoleByUsername(username, spaceGUID string, role models.Role) error { |
| 249 | rolePath := spaceRoleToPathMap[role] |
nothing calls this directly
no test coverage detected