   :available-media-types #{"text/csv" "application/json"}
   :known-content-type? #{"text/csv" "application/json"}
   :authorized? (authorized? store)
+  :allowed? (resource-allowed? store)
   :exists? (partial resource-exists? store)
   :delete-enacted? (partial resource-delete-enacted? store)
   :respond-with-entity? resource-respond-with-entity

   [kixi.hecuba.storage.sha1 :as sha1]
   [kixi.hecuba.web-paths :as p]
   [kixi.hecuba.data.users :as users]
   [kixi.hecuba.data.entities :as entities]))

(def ^:private entity-profiles-resource (p/resource-path-string :entity-profiles-resource))

(defn index-exists? [store ctx]
  (db/with-session [session (:hecuba-session store)]

  :available-media-types #{"text/csv" "application/json" "application/edn"}
  :known-content-type? #{"text/csv" "application/json" "application/edn"}
  :authorized? (authorized? store)
  :allowed? (index-allowed? store)
  :exists? (partial index-exists? store)
  :malformed? index-malformed?
  :post! (partial index-post! store)
