Commit d53abb9d authored by Sander van Harmelen's avatar Sander van Harmelen

Change GroupMember.AccessLevel to be of type AccessLevel

Fixes #36
parent 7125de3e
...@@ -195,13 +195,13 @@ func (s *GroupsService) SearchGroup(query string) ([]*Group, *Response, error) { ...@@ -195,13 +195,13 @@ func (s *GroupsService) SearchGroup(query string) ([]*Group, *Response, error) {
// //
// GitLab API docs: http://doc.gitlab.com/ce/api/groups.html // GitLab API docs: http://doc.gitlab.com/ce/api/groups.html
type GroupMember struct { type GroupMember struct {
ID int `json:"id"` ID int `json:"id"`
Username string `json:"username"` Username string `json:"username"`
Email string `json:"email"` Email string `json:"email"`
Name string `json:"name"` Name string `json:"name"`
State string `json:"state"` State string `json:"state"`
CreatedAt time.Time `json:"created_at"` CreatedAt time.Time `json:"created_at"`
AccessLevel int `json:"access_level"` AccessLevel AccessLevel `json:"access_level"`
} }
// ListGroupMembers get a list of group members viewable by the authenticated // ListGroupMembers get a list of group members viewable by the authenticated
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment