                   tag)
                 [:div {:style (when closed? {:display "none"})}
                  (om/build artifacts-node
-                           children
+                           {:artifacts children
+                            :admin? admin?}
                            {:opts (assoc opts
                                     :ancestors-closed? (or (:ancestors-closed? opts) closed?))})]]))
            (sort-by first artifacts))])))))

               {})
       :children))

(defn artifacts-node [artifacts owner {:keys [show-node-indices? admin?] :as opts}]
  (reify
    om/IRender
    (render [_]

                               :else              part)
                   url        (:url artifact)
                   tag        (if (and url (not admin?)) ; Be extra careful about XSS of admins
                                [:a.artifact-link {:href (:url artifact) :target "_blank"} text]
                                [:span.artifact-directory-text text])
                   key        (keyword (str "index-" idx))
                   closed?    (or
                               (:ancestors-closed? opts)
