fix: include dormant users in template acl query (#14461)

The issue is that if you add a user and then immediately go to give them
permissions, you can add them but they will not show up in the UI.  They
also do not show up in the audit log entry.
This commit is contained in:
Asher
2024-08-29 13:48:28 -08:00
committed by GitHub
parent 49afab12d5
commit ef7fcf3930
2 changed files with 41 additions and 1 deletions

View File

@ -167,7 +167,7 @@ func (q *sqlQuerier) GetTemplateUserRoles(ctx context.Context, id uuid.UUID) ([]
WHERE
users.deleted = false
AND
users.status = 'active';
users.status != 'suspended';
`
var tus []TemplateUser