Maersk page visible for everybody
This commit is contained in:
parent
8a98db9588
commit
e016bff028
@ -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:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user