mirror of
https://github.com/penpot/penpot.git
synced 2025-05-13 21:26:37 +02:00
🐛 Fix team role change permissions handling.
This commit is contained in:
parent
a397ab63f7
commit
822bd91323
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue