Jelajahi Sumber

update collaborators handler

Mohammed Nafees 4 tahun lalu
induk
melakukan
bae070fec4
1 mengubah file dengan 4 tambahan dan 0 penghapusan
  1. 4 0
      api/server/handlers/project/list_collaborators.go

+ 4 - 0
api/server/handlers/project/list_collaborators.go

@@ -54,6 +54,10 @@ func (p *CollaboratorsListHandler) ServeHTTP(w http.ResponseWriter, r *http.Requ
 				}
 			}
 		}
+
+		for _, user := range userCollaboratorMap {
+			res = append(res, user)
+		}
 	} else { // legacy operation
 		legacyRoles, err := p.Repo().Project().ListLegacyProjectRoles(proj.ID)