mirror of
https://github.com/penpot/penpot.git
synced 2025-05-16 21:06:10 +02:00
🐛 Fix wrong permissions on shared prototype for owners
This commit is contained in:
parent
acc1fac8de
commit
ec8c847440
2 changed files with 12 additions and 5 deletions
|
@ -38,6 +38,11 @@
|
|||
team (-> (db/get conn :team {:id (:team-id project)})
|
||||
(teams/decode-row))
|
||||
|
||||
members (into #{} (->> (teams/get-team-members conn (:team-id project))
|
||||
(map :id)))
|
||||
|
||||
perms (assoc perms :in-team (contains? members profile-id))
|
||||
|
||||
_ (-> (cfeat/get-team-enabled-features cf/flags team)
|
||||
(cfeat/check-client-features! (:features params))
|
||||
(cfeat/check-file-features! (:features file)))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue