mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-26 17:24:45 +00:00
assert file extension validity first (#1025)
This commit is contained in:
parent
7a93174404
commit
c93afe23aa
@ -30,6 +30,11 @@ export function canOpenWithOffice(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const extension = getFileExtension(file.entry.name);
|
||||||
|
if (!extension || !supportedExtensions[extension]) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// workaround for Shared files
|
// workaround for Shared files
|
||||||
if (
|
if (
|
||||||
context.navigation &&
|
context.navigation &&
|
||||||
@ -51,11 +56,6 @@ export function canOpenWithOffice(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
const extension = getFileExtension(file.entry.name);
|
|
||||||
if (!extension || !supportedExtensions[extension]) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (file.entry && file.entry.aspectNames) {
|
if (file.entry && file.entry.aspectNames) {
|
||||||
const checkedOut = file.entry.aspectNames.find(
|
const checkedOut = file.entry.aspectNames.find(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user