Maersk page visible for everybody

This commit is contained in:
Daniel Schick 2023-03-02 14:19:17 +01:00
parent 8a98db9588
commit e016bff028

View File

@ -661,11 +661,12 @@ namespace ENI2
this.labelStatusBar.Text = string.Format("Rep.Party: {0} {1} [{2}]", this.userEntity.FirstName, this.userEntity.LastName, this.userEntity.Logon); this.labelStatusBar.Text = string.Format("Rep.Party: {0} {1} [{2}]", this.userEntity.FirstName, this.userEntity.LastName, this.userEntity.Logon);
App.UserId = this.userEntity.Id; App.UserId = this.userEntity.Id;
ReportingParty.CurrentReportingParty = this.userEntity; ReportingParty.CurrentReportingParty = this.userEntity;
this.menuItemMaersk.Visibility = Visibility.Visible;
if (this.userEntity.IsAdmin) if (this.userEntity.IsAdmin)
{ {
this.menuItemUserAdministration.Visibility = Visibility.Visible; this.menuItemUserAdministration.Visibility = Visibility.Visible;
this.menuItemMaersk.Visibility = Visibility.Visible; this.sucheControl.AdminMode = true;
this.sucheControl.AdminMode = true;
} }
break; break;
case ReportingParty.LogonResult.FAILED: case ReportingParty.LogonResult.FAILED: