handler fixes for poke
This commit is contained in:
@@ -195,11 +195,20 @@
|
|||||||
(map :db/id (:user/clients identity))
|
(map :db/id (:user/clients identity))
|
||||||
|
|
||||||
(seq x-clients)
|
(seq x-clients)
|
||||||
x-clients))
|
(->> x-clients
|
||||||
|
(map (fn [c]
|
||||||
|
(if (string? c)
|
||||||
|
(try
|
||||||
|
(Long/parseLong c)
|
||||||
|
(catch Exception e
|
||||||
|
nil))
|
||||||
|
c)))
|
||||||
|
(filter #(not (nil? %)))
|
||||||
|
set)))
|
||||||
|
|
||||||
limited-clients (some->> (limited-clients identity)
|
limited-clients (some->> (limited-clients identity)
|
||||||
(map :db/id )
|
(map :db/id )
|
||||||
set)
|
set)
|
||||||
|
|
||||||
client-ids (if (= "admin" (:user/role identity))
|
client-ids (if (= "admin" (:user/role identity))
|
||||||
ideal-ids
|
ideal-ids
|
||||||
(set/intersection ideal-ids
|
(set/intersection ideal-ids
|
||||||
|
|||||||
Reference in New Issue
Block a user