mirror of
https://github.com/penpot/penpot.git
synced 2026-09-18 18:06:14 +00:00
🐛 Fix team role change permissions handling.
This commit is contained in:
parent
a397ab63f7
commit
822bd91323
@ -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))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user