mirror of
https://github.com/penpot/penpot.git
synced 2025-07-14 22:37:16 +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))
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@
|
|||
(t/is (th/ex-info? error))
|
||||
(t/is (th/ex-of-type? error :not-found))))
|
||||
|
||||
(t/deftest permissions-checks-delete-project
|
||||
(t/deftest permissions-checks-pin-project
|
||||
(let [profile1 (th/create-profile* 1)
|
||||
profile2 (th/create-profile* 2)
|
||||
project (th/create-project* 1 {:team-id (:default-team-id profile1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue