Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e96613d

Browse files
richardltfsamin
authored andcommitted
fix(api): load members on group to import action (#4910)
1 parent c4f892c commit e96613d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/api/action.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ func (api *API) getActionsForGroupHandler() service.Handler {
8585

8686
groupName := vars["permGroupName"]
8787

88-
g, err := group.LoadByName(ctx, api.mustDB(), groupName)
88+
g, err := group.LoadByName(ctx, api.mustDB(), groupName, group.LoadOptions.WithMembers)
8989
if err != nil {
9090
return err
9191
}
@@ -654,7 +654,7 @@ func (api *API) importActionHandler() service.Handler {
654654
if ea.Group == sdk.SharedInfraGroupName || ea.Group == "" {
655655
grp = group.SharedInfraGroup
656656
} else {
657-
grp, err = group.LoadByName(ctx, tx, ea.Group)
657+
grp, err = group.LoadByName(ctx, tx, ea.Group, group.LoadOptions.WithMembers)
658658
if err != nil {
659659
return err
660660
}

0 commit comments

Comments
 (0)