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

More efficient permission checking

parent efbb007f
No related branches found
No related tags found
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.
Finish editing this message first!
Please register or to comment