diff --git a/login/utils/helper.class.ts b/login/utils/helper.class.ts index 2e82289c..be4c442a 100644 --- a/login/utils/helper.class.ts +++ b/login/utils/helper.class.ts @@ -87,6 +87,16 @@ export class Session{ public static isManager(type: string, id: string, user: User): boolean { return user && user.role.indexOf(type.toUpperCase() + '_' + id.toUpperCase() + '_MANAGER') !== -1 } + public static isKindOfMonitorManager(user: User): boolean { + if(user){ + for(let role of user.role ){ + if(role.indexOf('_MANAGER') !== -1){ + return true; + } + } + } + return false; + } public static isRegisteredUser(user: User): boolean { return user && diff --git a/monitor/entities/stakeholder.ts b/monitor/entities/stakeholder.ts index 93012ffa..ce398c4e 100644 --- a/monitor/entities/stakeholder.ts +++ b/monitor/entities/stakeholder.ts @@ -146,6 +146,7 @@ export class Indicator { _id: string; name: string; description: string; + additionalDescription: string; type: IndicatorType; width: IndicatorWidth; tags: string[]; @@ -154,10 +155,11 @@ export class Indicator { indicatorPaths: IndicatorPath[]; recommendedFor: string[]; - constructor(name: string, description: string, type: IndicatorType, width: IndicatorWidth, visibility: Visibility, indicatorPaths: IndicatorPath[], defaultId: string = null) { + constructor(name: string, description: string, additionalDescription:string, type: IndicatorType, width: IndicatorWidth, visibility: Visibility, indicatorPaths: IndicatorPath[], defaultId: string = null) { this._id = null; this.name = name; this.description = description; + this.additionalDescription = additionalDescription; this.type = type; this.width = width; this.visibility = visibility;