add acl
This commit is contained in:
+4
-3
@@ -95,9 +95,10 @@ func (s *Service) ListGroups(ctx context.Context, memberID ident.UUID) ([]Group,
|
||||
groups := make([]Group, 0, len(rows))
|
||||
for _, row := range rows {
|
||||
groups = append(groups, Group{
|
||||
ID: row.ID,
|
||||
Name: row.Name,
|
||||
Role: row.Role,
|
||||
ID: row.ID,
|
||||
Name: row.Name,
|
||||
Status: row.Status,
|
||||
Role: row.Role,
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -35,9 +35,10 @@ type Principal struct {
|
||||
}
|
||||
|
||||
type Group struct {
|
||||
ID ident.UUID
|
||||
Name string
|
||||
Role string
|
||||
ID ident.UUID
|
||||
Name string
|
||||
Status string
|
||||
Role string
|
||||
}
|
||||
|
||||
type Member struct {
|
||||
|
||||
Reference in New Issue
Block a user