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;
|
||||
}
|
||||
|
||||
const extension = getFileExtension(file.entry.name);
|
||||
if (!extension || !supportedExtensions[extension]) {
|
||||
return false;
|
||||
}
|
||||
|
||||
// workaround for Shared files
|
||||
if (
|
||||
context.navigation &&
|
||||
@ -51,11 +56,6 @@ export function canOpenWithOffice(
|
||||
return false;
|
||||
}
|
||||
|
||||
const extension = getFileExtension(file.entry.name);
|
||||
if (!extension || !supportedExtensions[extension]) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
if (file.entry && file.entry.aspectNames) {
|
||||
const checkedOut = file.entry.aspectNames.find(
|
||||
|
Loading…
x
Reference in New Issue
Block a user