ch users <-> branches
CI/CD / Vet, test, build (push) Has been cancelled
CI/CD / Docker image (push) Has been cancelled
CI/CD / Deploy binary to server (push) Has been cancelled

This commit is contained in:
guwandyk committed 2026-09-18 22:59:58 +05:00
1 parent d3e188affe
commit 0971158e98
9 files changed
+43 -18

No files matched your search

+5 -1
View File
@@ -74,7 +74,11 @@ const userPermissionsJSON = `COALESCE((
), '[]'::json)`
func (r *repository) List(ctx context.Context, filter user.ListFilter) (user.ListUserDTO, error) {
fromClause, whereClause, args := buildFilteredListQuery(filter, listVisibleRoles...)
roles := listVisibleRoles
if filter.AllRoles {
roles = nil
}
fromClause, whereClause, args := buildFilteredListQuery(filter, roles...)
return r.paginateUsers(ctx, filter, fromClause, whereClause, args)
}