no need for bool-function anymore

integration-tests
Josha von Gizycki 6 years ago
parent 883b7d5ac2
commit 86b1586f76

@ -57,8 +57,3 @@
(time-format/unparse (time-format/unparse
(time-format/formatters :basic-date-time) (time-format/formatters :basic-date-time)
(time-local/local-now))) (time-local/local-now)))
(defn bool [value]
(if value
(.asBoolean value)
false))

@ -101,8 +101,8 @@
{:schema_uuid schema-uuid {:schema_uuid schema-uuid
:user_uuid user-uuid :user_uuid user-uuid
:type perm-type})) :type perm-type}))
public? (neo4j/bool (:is_public permissions)) public? (:is_public permissions)
user? (neo4j/bool (:user_has_permission permissions))] user? (:user_has_permission permissions)]
(or public? user?))) (or public? user?)))
(defn has-user-write-permissions? [schema-uuid user-uuid] (defn has-user-write-permissions? [schema-uuid user-uuid]

Loading…
Cancel
Save