From ebfcb716ac4e6501075985f25f14c9f24dcccac3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Valderrama?= Date: Thu, 9 Jul 2026 14:12:41 +0200 Subject: [PATCH] :bug: Fix permission to add a team to an organization (#10623) --- frontend/src/app/main/ui/dashboard/team.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/dashboard/team.cljs b/frontend/src/app/main/ui/dashboard/team.cljs index 0746a49a6b..e134930b4c 100644 --- a/frontend/src/app/main/ui/dashboard/team.cljs +++ b/frontend/src/app/main/ui/dashboard/team.cljs @@ -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*