0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-08 07:50:43 -05:00

🐛 Fix team role change permissions handling.

This commit is contained in:
Andrey Antukh 2021-02-01 10:53:42 +01:00
parent a397ab63f7
commit 822bd91323

View file

@ -167,8 +167,8 @@
:code :member-does-not-exist)) :code :member-does-not-exist))
;; First check if we have permissions to change roles ;; First check if we have permissions to change roles
(when-not (or (:is-owner perms) (when-not (or (some :is-owner perms)
(:is-admin perms)) (some :is-admin perms))
(ex/raise :type :validation (ex/raise :type :validation
:code :insufficient-permissions)) :code :insufficient-permissions))