Changeset 0.29.0 (#195)
This commit is contained in:
@@ -34,6 +34,9 @@ func (s *AuditStore) List(ctx context.Context, opts store.AuditListOptions) ([]m
|
||||
al.ip_address, al.user_agent, al.created_at`, "audit_log al")
|
||||
b.Join("LEFT JOIN users u ON al.actor_id = u.id")
|
||||
|
||||
if opts.TeamID != "" {
|
||||
b.Where("al.actor_id IN (SELECT user_id FROM team_members WHERE team_id = ?)", opts.TeamID)
|
||||
}
|
||||
if opts.ActorID != "" {
|
||||
b.Where("al.actor_id = ?", opts.ActorID)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user