Skip to content
Snippets Groups Projects
Unverified Commit b3000020 authored by Cal Herries's avatar Cal Herries Committed by GitHub
Browse files

Use `db` argument in `driver/database-supports?` for uploads (#42851)

parent 80d8e872
Branches
Tags v0.12.0
No related merge requests found
......@@ -294,7 +294,7 @@
(ex-info (tru "Uploads are not permitted for sandboxed users.")
{:status-code 403})
(not (driver/database-supports? driver :uploads nil))
(not (driver/database-supports? driver :uploads db))
(ex-info (tru "Uploads are not supported on {0} databases." (str/capitalize (name driver)))
{:status-code 422}))))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment