mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-31 17:38:28 +00:00
remove OAUTH check (#1156)
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
import { RuleContext, RuleParameter } from '@alfresco/adf-extensions';
|
import { RuleContext, RuleParameter } from '@alfresco/adf-extensions';
|
||||||
import { AuthenticationService } from '@alfresco/adf-core';
|
|
||||||
import { getFileExtension, supportedExtensions } from './utils';
|
import { getFileExtension, supportedExtensions } from './utils';
|
||||||
|
|
||||||
export function canOpenWithOffice(
|
export function canOpenWithOffice(
|
||||||
@@ -14,12 +13,6 @@ export function canOpenWithOffice(
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo: needs to have typed access via SDK (1.8)
|
|
||||||
const auth: AuthenticationService = (<any>context).auth;
|
|
||||||
if (auth && auth.isOauth()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!context || !context.selection) {
|
if (!context || !context.selection) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user