- Timestamp:
- 06/18/12 21:32:36 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Access.Administration/3.3/MenuItems/UserAdministrationMenuItem.cs
r8042 r8043 20 20 #endregion 21 21 22 using System; 22 23 using System.Collections.Generic; 24 using System.Linq; 25 using System.Windows.Forms; 23 26 using HeuristicLab.Optimizer; 24 27 … … 32 35 } 33 36 public override void Execute() { 34 using (UserAdministrationDialog dialog = new UserAdministrationDialog()) { 35 dialog.ShowDialog(); 37 if (UserInformation.Instance.User.Roles.Where(x => x.Name == UserInformation.AdministratorRoleName).Count() > 0) { 38 using (UserAdministrationDialog dialog = new UserAdministrationDialog()) { 39 dialog.ShowDialog(); 40 } 41 } else { 42 MessageBox.Show("You do not seem to have the permissions to use the Access Service Administrator." + Environment.NewLine + 43 "If that's not the case or you have any questions please write an email to support@heuristiclab.com", 44 "Access Service Administrator", MessageBoxButtons.OK, MessageBoxIcon.Error); 36 45 } 37 46 }
Note: See TracChangeset
for help on using the changeset viewer.