From 764f60edcbc9cefe30e4379df7b939e033c2cc2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Thor=C3=A9n?= Date: Fri, 10 Nov 2017 21:32:38 +0000 Subject: [PATCH] Fix can-create? bug and log it --- src/clj/commiteth/routes/webhooks.clj | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/clj/commiteth/routes/webhooks.clj b/src/clj/commiteth/routes/webhooks.clj index 83dd780..4ab2c42 100644 --- a/src/clj/commiteth/routes/webhooks.clj +++ b/src/clj/commiteth/routes/webhooks.clj @@ -260,7 +260,8 @@ :owner-avatar-url owner-avatar-url :repo-id repo-id :repo repo-name - :full-repo full-repo})) + :full-repo full-repo + :can-create? can-create?})) (cond (not can-create?) {:status 400 :body "Please join our Riot - chat.status.im/#/register and request @@ -299,7 +300,7 @@ username (:login sender) owner-avatar-url (:avatar_url sender) first-repo (first repositories) - can-create? (user-whitelisted? (:username username))] + can-create? (user-whitelisted? username)] (log/info "handle-installation created" (pr-str {:user-id user-id :name username @@ -320,7 +321,7 @@ username (:login sender) owner-avatar-url (:avatar_url sender) first-repo (first repositories) - can-create? (user-whitelisted? (:username username))] + can-create? (user-whitelisted? username)] (log/info "handle-installation-integration created" (pr-str {:user-id user-id :name username