mirror of
https://github.com/penpot/penpot.git
synced 2025-05-21 02:46:11 +02:00
🐛 Fix incorrect feature checking on move project
This commit is contained in:
parent
ba01f314dd
commit
bdb1742d59
2 changed files with 70 additions and 58 deletions
|
@ -391,7 +391,15 @@
|
|||
;; Check the teams compatibility
|
||||
(let [orig-team (teams/get-team conn :profile-id profile-id :team-id (:team-id project))
|
||||
dest-team (teams/get-team conn :profile-id profile-id :team-id team-id)]
|
||||
(cfeat/check-teams-compatibility! orig-team dest-team))
|
||||
(cfeat/check-teams-compatibility! orig-team dest-team)
|
||||
|
||||
;; Check if all pending to move files are compaib
|
||||
(let [features (cfeat/get-team-enabled-features cf/flags dest-team)]
|
||||
(doseq [file (->> (db/query conn :file
|
||||
{:project-id project-id}
|
||||
{:columns [:features]})
|
||||
(map files/decode-row))]
|
||||
(cfeat/check-file-features! features (:features file)))))
|
||||
|
||||
;; move project to the destination team
|
||||
(db/update! conn :project
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue