diff --git a/app/assets/javascripts/discourse/app/lib/uploads.js b/app/assets/javascripts/discourse/app/lib/uploads.js index 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) ); }