From 9162f0e1fd3720a121e1956e54da7a578401721c Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 7 Feb 2023 14:41:34 +0100 Subject: [PATCH] :bug: Fix auth flag handling on rpc metadata --- backend/src/app/rpc.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/app/rpc.clj b/backend/src/app/rpc.clj index 49a03ae6a4..3f9581ef09 100644 --- a/backend/src/app/rpc.clj +++ b/backend/src/app/rpc.clj @@ -162,10 +162,10 @@ (defn- wrap-authentication - [_ f {:keys [::auth] :as mdata}] + [_ f mdata] (fn [cfg params] (let [profile-id (::profile-id params)] - (if (and auth (not (uuid? profile-id))) + (if (and (::auth mdata true) (not (uuid? profile-id))) (p/rejected (ex/error :type :authentication :code :authentication-required