@ -57,8 +57,3 @@
(time-format/unparse
(time-format/formatters :basic-date-time)
(time-local/local-now)))
(defn bool [value]
(if value
(.asBoolean value)
false))
@ -101,8 +101,8 @@
{:schema_uuid schema-uuid
:user_uuid user-uuid
:type perm-type}))
public? (neo4j/bool (:is_public permissions))
user? (neo4j/bool (:user_has_permission permissions))]
public? (:is_public permissions)
user? (:user_has_permission permissions)]
(or public? user?)))
(defn has-user-write-permissions? [schema-uuid user-uuid]