0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-04-10 14:01:29 -05:00

🐛 Fix unexpected unauthorized exception on read team members.

This commit is contained in:
Andrey Antukh 2021-01-19 11:30:57 +01:00 committed by Alonso Torres
parent b7a90eb4e4
commit 4fbd2e6caa

View file

@ -111,7 +111,7 @@
(sv/defmethod ::team-members
[{:keys [pool] :as cfg} {:keys [profile-id team-id]}]
(with-open [conn (db/open pool)]
(check-edition-permissions! conn profile-id team-id)
(check-read-permissions! conn profile-id team-id)
(retrieve-team-members conn team-id)))
(def sql:team-members