diff --git a/src/wanijo/framework/neo4j.clj b/src/wanijo/framework/neo4j.clj index 748e56b..938a44c 100644 --- a/src/wanijo/framework/neo4j.clj +++ b/src/wanijo/framework/neo4j.clj @@ -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)) diff --git a/src/wanijo/schema/domain.clj b/src/wanijo/schema/domain.clj index 2f2070c..00981d3 100644 --- a/src/wanijo/schema/domain.clj +++ b/src/wanijo/schema/domain.clj @@ -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]