Value Mapping Menu Item is visible depending on user editor flag
This commit is contained in:
parent
85cfe5155f
commit
b7ce7aea90
@ -675,9 +675,10 @@ namespace ENI2
|
|||||||
this.menuItemValueMappings.Visibility = Visibility.Visible;
|
this.menuItemValueMappings.Visibility = Visibility.Visible;
|
||||||
if (this.userEntity.IsAdmin)
|
if (this.userEntity.IsAdmin)
|
||||||
{
|
{
|
||||||
this.menuItemUserAdministration.Visibility = Visibility.Visible;
|
this.menuItemUserAdministration.Visibility = Visibility.Visible;
|
||||||
this.sucheControl.AdminMode = true;
|
this.sucheControl.AdminMode = true;
|
||||||
}
|
}
|
||||||
|
this.menuItemValueMappings.Visibility = this.userEntity.IsEditor ? Visibility.Visible : Visibility.Hidden;
|
||||||
break;
|
break;
|
||||||
case ReportingParty.LogonResult.FAILED:
|
case ReportingParty.LogonResult.FAILED:
|
||||||
this.labelLoginResult.Content = Properties.Resources.textWrongPassword;
|
this.labelLoginResult.Content = Properties.Resources.textWrongPassword;
|
||||||
|
|||||||
@ -801,7 +801,7 @@ namespace bsmd.database
|
|||||||
if ((this._con == null) ||
|
if ((this._con == null) ||
|
||||||
(this._con.State == ConnectionState.Closed))
|
(this._con.State == ConnectionState.Closed))
|
||||||
this.Connect(this.ConnectionString);
|
this.Connect(this.ConnectionString);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void LogNonQueryResult(string query, int queryResult)
|
private void LogNonQueryResult(string query, int queryResult)
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user