(userGUID string, orgGUID string, role models.Role)
| 215 | } |
| 216 | |
| 217 | func (repo CloudControllerUserRepository) SetOrgRoleByGUID(userGUID string, orgGUID string, role models.Role) (err error) { |
| 218 | path, err := userGUIDPath(repo.config.APIEndpoint(), userGUID, orgGUID, role) |
| 219 | if err != nil { |
| 220 | return |
| 221 | } |
| 222 | err = repo.callAPI("PUT", path, nil) |
| 223 | if err != nil { |
| 224 | return |
| 225 | } |
| 226 | return repo.assocUserWithOrgByUserGUID(userGUID, orgGUID) |
| 227 | } |
| 228 | |
| 229 | func (repo CloudControllerUserRepository) UnsetOrgRoleByGUID(userGUID, orgGUID string, role models.Role) (err error) { |
| 230 | path, err := userGUIDPath(repo.config.APIEndpoint(), userGUID, orgGUID, role) |
nothing calls this directly
no test coverage detected