Skip to content

Commit f0f1240

Browse files
authored
fix(account): container is not initialized correctly when its filtered (#81)
1 parent a44681b commit f0f1240

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

account/accountusecase/accountrepo/container.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ func (c *Container) Filtered(workspace WorkspaceFilter) *Container {
2727
return c
2828
}
2929
return &Container{
30-
Workspace: c.Workspace.Filtered(workspace),
31-
User: c.User,
32-
Users: c.Users,
30+
Workspace: c.Workspace.Filtered(workspace),
31+
User: c.User,
32+
Users: c.Users,
33+
Role: c.Role, // TODO: Delete this once the permission check migration is complete.
34+
Permittable: c.Permittable, // TODO: Delete this once the permission check migration is complete.
35+
Transaction: c.Transaction,
3336
}
3437
}
3538

0 commit comments

Comments
 (0)