FIX: Uploads was not testing properly
This commit is contained in:
parent
808b5aa5ba
commit
bb2460fe66
|
@ -165,7 +165,7 @@ function isAuthorizedImage(fileName, staff, siteSettings) {
|
||||||
return new RegExp(
|
return new RegExp(
|
||||||
"\\.(" + imagesExtensions(staff, siteSettings).join("|") + ")$",
|
"\\.(" + imagesExtensions(staff, siteSettings).join("|") + ")$",
|
||||||
"i"
|
"i"
|
||||||
);
|
).test(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function authorizedExtensions(staff, siteSettings) {
|
export function authorizedExtensions(staff, siteSettings) {
|
||||||
|
|
Loading…
Reference in New Issue