mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user