Skip to content
Snippets Groups Projects
Unverified Commit 31779e84 authored by Jerry Huang's avatar Jerry Huang Committed by GitHub
Browse files

Remove hardcoded value of all users id (#32510)

parent c2945ad0
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,7 @@
data (into #{}
(t2/select
(vec (cons User (user-visible-columns)))
(cond-> (user-clauses nil nil (remove #{1} user_group_ids) nil)
(cond-> (user-clauses nil nil (remove #{(u/the-id (perms-group/all-users))} user_group_ids) nil)
true (sql.helpers/order-by [:%lower.last_name :asc] [:%lower.first_name :asc])
(some? mw.offset-paging/*limit*) (sql.helpers/limit mw.offset-paging/*limit*)
(some? mw.offset-paging/*offset*) (sql.helpers/offset mw.offset-paging/*offset*))))]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment