mirror of
https://github.com/penpot/penpot.git
synced 2026-05-24 00:19:29 -04:00
✨ Add nitrate advanced permissions for move teams
This commit is contained in:
@@ -1393,6 +1393,14 @@
|
||||
(filter :organization)
|
||||
(map dtm/team->organization)))
|
||||
|
||||
current-organization-id (dm/get-in team [:organization :id])
|
||||
|
||||
can-change-organization? (mf/with-memo [all-organizations current-organization-id]
|
||||
(->> all-organizations
|
||||
(remove #(= (:id %) current-organization-id))
|
||||
seq
|
||||
some?))
|
||||
|
||||
;; Filter to orgs where user is allowed to create/add teams
|
||||
organizations (mf/with-memo [all-organizations profile-id]
|
||||
(->> all-organizations
|
||||
|
||||
Reference in New Issue
Block a user