Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9063 for trunk/sources


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

Location:
trunk/sources
Files:
3 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()) {
  • trunk/sources/HeuristicLab.Clients.Access.Views/3.3/UserViews/RefreshableLightweightUserView.cs

    r8141 r9063  
    7575      base.Content_Refreshed(sender, e);
    7676
    77       lightweightUserView.Content = new ItemList<UserGroupBase>(Content.UsersAndGroups.Where(x => selectedUsers.Contains(x.Id)));
    78       if (lightweightUserView.Content != null) OnStorableStateChanged();
     77      if (Content.UsersAndGroups != null) {
     78        lightweightUserView.Content = new ItemList<UserGroupBase>(Content.UsersAndGroups.Where(x => selectedUsers.Contains(x.Id)));
     79        if (lightweightUserView.Content != null) OnStorableStateChanged();
     80      }
    7981    }
    8082
  • trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ResourcesView.cs

    r8089 r9063  
    437437
    438438      try {
     439        if (!Access.UserInformation.Instance.UserExists) {
     440          //do a refresh just in case that the user has changed his usr and pwd in between
     441          Access.UserInformation.Instance.Refresh();
     442        }
    439443        HiveAdminClient.Instance.Refresh();
    440444        Content = HiveAdminClient.Instance.Resources;
Note: See TracChangeset for help on using the changeset viewer.