mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACS-9980] Add the option to provide custom user profile sections (#4859)
* [ACS-9980] Add the option to provide custom user profile sections * [ACS-9980] Cr fixes * [ACS-9980] Formatting fix
This commit is contained in:
@@ -1196,6 +1196,18 @@ describe('app.evaluators', () => {
|
||||
expect(app.isSmartFolder(context)).toBeTrue();
|
||||
});
|
||||
});
|
||||
|
||||
describe('isSSOEnabled', () => {
|
||||
it('should return true if sso is enabled', () => {
|
||||
context.appConfig = { get: () => 'OAUTH' } as any;
|
||||
expect(app.isSSOEnabled(context)).toBe(true);
|
||||
});
|
||||
|
||||
it('should return false if sso is not enabled', () => {
|
||||
context.appConfig = { get: () => 'basic' } as any;
|
||||
expect(app.isSSOEnabled(context)).toBe(false);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe('Versions compatibility', () => {
|
||||
|
||||
@@ -560,3 +560,5 @@ export const canDisplayKnowledgeRetrievalButton = (context: AcaRuleContext): boo
|
||||
navigation.isRecentFiles(context) ||
|
||||
navigation.isFavorites(context) ||
|
||||
((navigation.isSearchResults(context) || navigation.isLibraryContent(context)) && !navigation.isLibraries(context)));
|
||||
|
||||
export const isSSOEnabled = (context: AcaRuleContext): boolean => context.appConfig.get('authType') === 'OAUTH';
|
||||
|
||||
Reference in New Issue
Block a user