Minor improvements

This commit is contained in:
Eduard Urbach 2019-06-19 19:00:42 +09:00
parent 2d825739ca
commit 84c34b0252
Signed by: akyoto
GPG Key ID: C874F672B1AF20C0
2 changed files with 5 additions and 5 deletions

View File

@ -160,7 +160,7 @@ func Profile(ctx aero.Context, viewUser *arn.User) error {
groups := []*arn.Group{} groups := []*arn.Group{}
for group := range arn.StreamGroups() { for group := range arn.StreamGroups() {
if group.HasMember(viewUser.ID) { if !group.IsDraft && group.HasMember(viewUser.ID) {
groups = append(groups, group) groups = append(groups, group)
} }
} }