chore: perform several small frontend permissions refactors (#16735)

This commit is contained in:
ケイラ
2025-03-07 10:33:09 -07:00
committed by GitHub
parent 54745b1d3f
commit 092c129de0
57 changed files with 158 additions and 174 deletions

View File

@ -167,8 +167,6 @@ func (api *API) patchGroup(rw http.ResponseWriter, r *http.Request) {
})
return
}
// TODO: It would be nice to enforce this at the schema level
// but unfortunately our org_members table does not have an ID.
_, err := database.ExpectOne(api.Database.OrganizationMembers(ctx, database.OrganizationMembersParams{
OrganizationID: group.OrganizationID,
UserID: uuid.MustParse(id),