mirror of
https://github.com/penpot/penpot.git
synced 2025-06-09 09:51:39 +02:00
♻️ Resolve minor errors on viewer role on dashboard
This commit is contained in:
parent
6fb65de100
commit
536c25c206
8 changed files with 27 additions and 42 deletions
|
@ -222,7 +222,7 @@
|
|||
::webhooks/event? true}
|
||||
[{:keys [::db/pool] :as cfg} {:keys [::rpc/profile-id id team-id is-pinned] :as params}]
|
||||
(db/with-atomic [conn pool]
|
||||
(check-edition-permissions! conn profile-id id)
|
||||
(check-read-permissions! conn profile-id id)
|
||||
(db/exec-one! conn [sql:update-project-pin team-id id profile-id is-pinned is-pinned])
|
||||
nil))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue