Skip to content
Snippets Groups Projects
Commit eb8b9a9e authored by Simon Belak's avatar Simon Belak
Browse files

More efficient permission checking

parent 09eef767
Branches
Tags
No related merge requests found
......@@ -430,9 +430,9 @@
:table_id (:id table)
:fk_target_field_id [:not= nil])
field/with-targets
(filter (comp mi/can-read? :target))
(map (fn [{:keys [id target]}]
(-> target field/table (assoc :link id))))
(filter mi/can-read?)))
(-> target field/table (assoc :link id))))))
(defmulti
^{:private true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment