Skip to content

Commit

Permalink
missed one api response that should have a direct membership flag (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobsee authored Aug 15, 2023
1 parent 99b52f5 commit dec3db1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/api/v1alpha1/group_membership.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ type GroupMember struct {
Status string `json:"status"`
IsAdmin bool `json:"is_admin"`
ExpiresAt null.Time `json:"expires_at"`
Direct bool `json:"direct"`
}

// GroupMembership is the relationship between user and groups
Expand Down Expand Up @@ -104,6 +105,7 @@ func (r *Router) listGroupMembers(c *gin.Context) {
Status: m.User.Status.String,
IsAdmin: m.IsAdmin,
ExpiresAt: m.ExpiresAt,
Direct: m.Direct,
}
}

Expand Down

0 comments on commit dec3db1

Please sign in to comment.