mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 10:56:20 +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]
|
can-change-organization? (mf/with-memo [all-organizations]
|
||||||
(> (count all-organizations) 1))
|
(> (count all-organizations) 1))
|
||||||
|
|
||||||
can-add-to-organization? (mf/with-memo [organizations all-organizations]
|
can-add-to-organization? (mf/with-memo [organizations all-organizations permissions]
|
||||||
(and (pos? (count all-organizations))
|
(and (:is-owner permissions)
|
||||||
|
(pos? (count all-organizations))
|
||||||
(not (:is-default team))))
|
(not (:is-default team))))
|
||||||
|
|
||||||
show-org-options-menu*
|
show-org-options-menu*
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user