- Timestamp:
- 03/09/12 17:22:38 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Administration/AdministratorMenuItem.cs
r7331 r7592 21 21 22 22 using System.Collections.Generic; 23 using System.Windows.Forms; 23 24 using HeuristicLab.MainForm; 24 25 using HeuristicLab.Optimizer; … … 37 38 38 39 public override void Execute() { 39 MainFormManager.MainForm.ShowContent(AdministrationClient.Instance); 40 if (OKBRoles.CheckAdminUserPermissions()) { 41 MainFormManager.MainForm.ShowContent(AdministrationClient.Instance); 42 } else { 43 MessageBox.Show("You don't have the permissions for administrating the OKB.", "Security check failed", MessageBoxButtons.OK, MessageBoxIcon.Warning); 44 } 40 45 } 41 46 }
Note: See TracChangeset
for help on using the changeset viewer.