From 822bd91323e2bb6544d9165f0c06d9f874310dd0 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 1 Feb 2021 10:53:42 +0100 Subject: [PATCH] :bug: Fix team role change permissions handling. --- backend/src/app/rpc/mutations/teams.clj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/app/rpc/mutations/teams.clj b/backend/src/app/rpc/mutations/teams.clj index 82fb7a7f4..46a9766ab 100644 --- a/backend/src/app/rpc/mutations/teams.clj +++ b/backend/src/app/rpc/mutations/teams.clj @@ -167,8 +167,8 @@ :code :member-does-not-exist)) ;; First check if we have permissions to change roles - (when-not (or (:is-owner perms) - (:is-admin perms)) + (when-not (or (some :is-owner perms) + (some :is-admin perms)) (ex/raise :type :validation :code :insufficient-permissions))