Skip to content

Commit

Permalink
bugfix find user via email
Browse files Browse the repository at this point in the history
  • Loading branch information
awb99 committed Jun 29, 2024
1 parent 4c203ec commit 651f077
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modular/permission/user.clj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
(if-let [roles (:roles user)]
roles
#{})
#{}))
nil))

; find user by email

Expand All @@ -36,6 +36,7 @@

(defn find-user-id-via-email [{:keys [users] :as _this} email]
(->> @users
vals
(filter (has-email? email))
first
:id))
Expand Down

0 comments on commit 651f077

Please sign in to comment.