From de46b7f1fb6687c3f74338c842e119ef0328abdd Mon Sep 17 00:00:00 2001 From: Cilibiu Bogdan Date: Tue, 9 Jul 2019 14:32:17 +0300 Subject: [PATCH] remove OAUTH check (#1156) --- projects/adf-office-services-ext/src/lib/evaluators.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/projects/adf-office-services-ext/src/lib/evaluators.ts b/projects/adf-office-services-ext/src/lib/evaluators.ts index 037df5851..10aa26aa6 100644 --- a/projects/adf-office-services-ext/src/lib/evaluators.ts +++ b/projects/adf-office-services-ext/src/lib/evaluators.ts @@ -1,5 +1,4 @@ import { RuleContext, RuleParameter } from '@alfresco/adf-extensions'; -import { AuthenticationService } from '@alfresco/adf-core'; import { getFileExtension, supportedExtensions } from './utils'; export function canOpenWithOffice( @@ -14,12 +13,6 @@ export function canOpenWithOffice( return false; } - // todo: needs to have typed access via SDK (1.8) - const auth: AuthenticationService = (context).auth; - if (auth && auth.isOauth()) { - return false; - } - if (!context || !context.selection) { return false; }