mirror of
https://github.com/penpot/penpot.git
synced 2026-08-01 19:06:18 +00:00
🐛 Fix unexpected unauthorized exception on read team members.
This commit is contained in:
parent
b7a90eb4e4
commit
4fbd2e6caa
@ -111,7 +111,7 @@
|
|||||||
(sv/defmethod ::team-members
|
(sv/defmethod ::team-members
|
||||||
[{:keys [pool] :as cfg} {:keys [profile-id team-id]}]
|
[{:keys [pool] :as cfg} {:keys [profile-id team-id]}]
|
||||||
(with-open [conn (db/open pool)]
|
(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)))
|
(retrieve-team-members conn team-id)))
|
||||||
|
|
||||||
(def sql:team-members
|
(def sql:team-members
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user