mirror of
https://github.com/discourse/discourse.git
synced 2024-12-01 21:19:41 -06:00
FIX: allow staff to upload when they should and authorized_extensions is blank (#15136)
Allow staff to upload when authorized_extensions is blank, but authorized_extensions_for_staff is not
This commit is contained in:
parent
0edacbd8f7
commit
9896fc7d33
@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user