Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/17/12 10:48:26 (12 years ago)
Author:
ascheibe
Message:

#1950 fixed some errors that occurred when the user name was not set correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Clients.Access.Administration/3.3/MenuItems/UserAdministrationMenuItem.cs

    r8043 r9063  
    3535    }
    3636    public override void Execute() {
     37      if (!UserInformation.Instance.UserExists) {
     38        MessageBox.Show("Couldn't fetch user information from the server." + Environment.NewLine + "Please verify that you have an existing user and that your user name and password is correct. ", "HeuristicLab Access Service", MessageBoxButtons.OK, MessageBoxIcon.Error);
     39        return;
     40      }
    3741      if (UserInformation.Instance.User.Roles.Where(x => x.Name == UserInformation.AdministratorRoleName).Count() > 0) {
    3842        using (UserAdministrationDialog dialog = new UserAdministrationDialog()) {
Note: See TracChangeset for help on using the changeset viewer.