Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/09/12 17:22:38 (13 years ago)
Author:
ascheibe
Message:

#1174 added client-side security checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/Administration/AdministratorMenuItem.cs

    r7331 r7592  
    2121
    2222using System.Collections.Generic;
     23using System.Windows.Forms;
    2324using HeuristicLab.MainForm;
    2425using HeuristicLab.Optimizer;
     
    3738
    3839    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      }
    4045    }
    4146  }
Note: See TracChangeset for help on using the changeset viewer.