♻️ Resolve minor errors on viewer role on dashboard

This commit is contained in:
Eva Marco 2024-10-16 10:37:52 +02:00
parent 6fb65de100
commit 536c25c206
8 changed files with 27 additions and 42 deletions

View file

@ -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))