File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,20 +55,20 @@ func (api *API) putMemberRoles(rw http.ResponseWriter, r *http.Request) {
55
55
56
56
// Assigning a role requires the create permission.
57
57
if len (added ) > 0 && ! api .Authorize (r , rbac .ActionCreate , rbac .ResourceOrgRoleAssignment .InOrg (organization .ID )) {
58
- httpapi .Forbidden (rw )
58
+ httpapi .ResourceNotFound (rw )
59
59
return
60
60
}
61
61
62
62
// Removing a role requires the delete permission.
63
63
if len (removed ) > 0 && ! api .Authorize (r , rbac .ActionDelete , rbac .ResourceOrgRoleAssignment .InOrg (organization .ID )) {
64
- httpapi .Forbidden (rw )
64
+ httpapi .ResourceNotFound (rw )
65
65
return
66
66
}
67
67
68
68
// Just treat adding & removing as "assigning" for now.
69
69
for _ , roleName := range append (added , removed ... ) {
70
70
if ! rbac .CanAssignRole (actorRoles .Actor .Roles , roleName ) {
71
- httpapi .Forbidden (rw )
71
+ httpapi .ResourceNotFound (rw )
72
72
return
73
73
}
74
74
}
You can’t perform that action at this time.
0 commit comments