Skip to content

Commit

Permalink
fix(groups): fix empty object id on new parented group creation
Browse files Browse the repository at this point in the history
Signed-off-by: Felix Gateru <[email protected]>
  • Loading branch information
felixgateru committed Dec 16, 2024
1 parent 8c93dae commit b887960
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions groups/middleware/logging.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ func (lm *loggingMiddleware) RetrieveGroupHierarchy(ctx context.Context, session
slog.String("duration", time.Since(begin).String()),
slog.String("group_id", id),
slog.Group("page",
slog.Uint64("limit", hm.Level),
slog.Int64("offset", hm.Direction),
slog.Bool("total", hm.Tree),
slog.Uint64("level", hm.Level),
slog.Int64("direction", hm.Direction),
slog.Bool("tree", hm.Tree),
),
}
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions groups/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ func (svc service) CreateGroup(ctx context.Context, session smqauthn.Session, g
Subject: saved.Parent,
Relation: policies.ParentGroupRelation,
ObjectType: policies.GroupType,
ObjectKind: policies.NewGroupKind,
Object: saved.ID,
})
}
Expand Down

0 comments on commit b887960

Please sign in to comment.