mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ACS-827] - added whitelisted element and method for checking them (#6329)
* [ACS-827] - added whitelisted element and method for checking them * [ACS-827] - changed method name with clear one * [ACS-827] - pr review changes Co-authored-by: Vito Albano <vitoalbano@vitoalbano-mbp-0120.local>
This commit is contained in:
@@ -48,6 +48,8 @@ export class AlfrescoApiService {
|
||||
|
||||
lastConfig: AlfrescoApiConfig;
|
||||
|
||||
private excludedErrorUrl: string[] = ['api/enterprise/system/properties'];
|
||||
|
||||
getInstance(): AlfrescoApiCompatibility {
|
||||
return this.alfrescoApi;
|
||||
}
|
||||
@@ -152,4 +154,9 @@ export class AlfrescoApiService {
|
||||
isDifferentConfig(lastConfig: AlfrescoApiConfig, newConfig: AlfrescoApiConfig) {
|
||||
return JSON.stringify(lastConfig) !== JSON.stringify(newConfig);
|
||||
}
|
||||
|
||||
isExcludedErrorListener(currentFullPath: string): boolean {
|
||||
const formattedPath = currentFullPath.replace(this.lastConfig.hostBpm + '/' + this.lastConfig.contextRootBpm, '');
|
||||
return this.excludedErrorUrl.includes(formattedPath);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user