mirror of
https://github.com/penpot/penpot.git
synced 2026-07-21 13:37:49 +00:00
🐛 Fix permission to add a team to an organization (#10623)
This commit is contained in:
parent
80d688be93
commit
ebfcb716ac
@ -1538,8 +1538,9 @@
|
||||
can-change-organization? (mf/with-memo [all-organizations]
|
||||
(> (count all-organizations) 1))
|
||||
|
||||
can-add-to-organization? (mf/with-memo [organizations all-organizations]
|
||||
(and (pos? (count all-organizations))
|
||||
can-add-to-organization? (mf/with-memo [organizations all-organizations permissions]
|
||||
(and (:is-owner permissions)
|
||||
(pos? (count all-organizations))
|
||||
(not (:is-default team))))
|
||||
|
||||
show-org-options-menu*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user