A platform for community discussion. Free, open, simple.
FIX: allow staff to upload when they should and authorized_extensions is blank (#15136)
Jeff Wong9896fc7d3381
diff --git a/app/assets/javascripts/discourse/app/lib/uploads.js b/app/assets/javascripts/discourse/app/lib/uploads.jsindex dc1f9605a52..ba3a214b9fc 100644--- a/app/assets/javascripts/discourse/app/lib/uploads.js+++ b/app/assets/javascripts/discourse/app/lib/uploads.js@@ -202,7 +202,11 @@ export function authorizesOneOrMoreExtensions(staff, siteSettings) {return (siteSettings.authorized_extensions.split("|").filter((ext) => ext).length >- 0+ 0 ||+ (siteSettings.authorized_extensions_for_staff+ .split("|")+ .filter((ext) => ext).length > 0 &&+ staff));}