🐛 Fix permission to add a team to an organization (#10623)

This commit is contained in:
María Valderrama 2026-07-09 14:12:41 +02:00 committed by GitHub
parent 80d688be93
commit ebfcb716ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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*