diff --git a/src/app/shared/services/app.service.ts b/src/app/shared/services/app.service.ts index d9c0112d6..fa8128fe7 100644 --- a/src/app/shared/services/app.service.ts +++ b/src/app/shared/services/app.service.ts @@ -283,6 +283,10 @@ export class AppService implements OnDestroy { // weak ks such as KMS user cannot load user roles. In that case we will use the getCurrentPermissions API to load current permissions disregarding user roles // if getCurrentPermissions didn't return a valid result (for example an exception) - we will init the permissions manager with no permissions as all const currentPermissions = currentPermissionsResponse && currentPermissionsResponse.result ? currentPermissionsResponse.result.split(',') : []; + // since FEATURE_LOAD_THUMBNAIL_WITH_KS is a partner feature it is not returned by the getCurrentPermissions API so it is send from KMS using configuration + if (analyticsConfig.loadThumbnailWithKs) { + currentPermissions.push('FEATURE_LOAD_THUMBNAIL_WITH_KS'); + } this._permissionsService.load(currentPermissions, currentPermissions); this._permissionsLoaded.next(true); initPlayers(); diff --git a/src/configuration/analytics-config.ts b/src/configuration/analytics-config.ts index 91ddcb2c2..449c26c4f 100644 --- a/src/configuration/analytics-config.ts +++ b/src/configuration/analytics-config.ts @@ -39,6 +39,7 @@ export interface AnalyticsConfig { ks?: string; pid?: string; locale?: string; + loadThumbnailWithKs?: boolean; dateFormat?: string; showNavBar?: boolean; isHosted?: boolean;