[develop]: Fix to stakeholderInfo

This commit is contained in:
Konstantinos Triantafyllou 2024-06-12 13:05:26 +03:00
parent b8fb19d757
commit e51144a68d
1 changed files with 2 additions and 2 deletions

View File

@ -85,8 +85,8 @@ export class StakeholderInfo extends Stakeholder {
public static toStakeholderInfo(stakeholders: (Stakeholder & StakeholderInfo)[], user: User): StakeholderInfo[] { public static toStakeholderInfo(stakeholders: (Stakeholder & StakeholderInfo)[], user: User): StakeholderInfo[] {
return stakeholders.map(stakeholder => { return stakeholders.map(stakeholder => {
stakeholder.isManager = Session.isPortalAdministrator(user) || Session.isMonitorCurator(user) || Session.isManager(stakeholder.type, stakeholder.alias, user); stakeholder.isManager = Session.isPortalAdministrator(user) || Session.isCurator(stakeholder.type, user) || Session.isManager(stakeholder.type, stakeholder.alias, user);
stakeholder.isMember = Session.isMember(stakeholder.type, stakeholder.alias, user); stakeholder.isMember = stakeholder.isManager || Session.isMember(stakeholder.type, stakeholder.alias, user);
return stakeholder; return stakeholder;
}) })
} }