[develop]: Fix to stakeholderInfo
This commit is contained in:
parent
b8fb19d757
commit
e51144a68d
|
@ -85,8 +85,8 @@ export class StakeholderInfo extends Stakeholder {
|
|||
|
||||
public static toStakeholderInfo(stakeholders: (Stakeholder & StakeholderInfo)[], user: User): StakeholderInfo[] {
|
||||
return stakeholders.map(stakeholder => {
|
||||
stakeholder.isManager = Session.isPortalAdministrator(user) || Session.isMonitorCurator(user) || Session.isManager(stakeholder.type, stakeholder.alias, user);
|
||||
stakeholder.isMember = Session.isMember(stakeholder.type, stakeholder.alias, user);
|
||||
stakeholder.isManager = Session.isPortalAdministrator(user) || Session.isCurator(stakeholder.type, user) || Session.isManager(stakeholder.type, stakeholder.alias, user);
|
||||
stakeholder.isMember = stakeholder.isManager || Session.isMember(stakeholder.type, stakeholder.alias, user);
|
||||
return stakeholder;
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue