@ -126,3 +126,7 @@
(neo4j/exec-query!
assigned-users
{:uuid uuid})))
(defn find-with-assigned-users! [uuid]
(assoc (find-by-uuid! uuid)
:assigned (map :uuid (assigned-users! uuid))))
@ -38,8 +38,7 @@
(defn view! [uuid req]
(view-schema/show-schema!
(assoc (domain/find-by-uuid! uuid)
:assigned (map :uuid (domain/assigned-users! uuid)))
(domain/find-with-assigned-users! uuid)
(domain-attr/find-by-schema! uuid)
(assoc-in view-schema/access-form
[:fields :assigned :options]