- Timestamp:
- 06/18/12 21:32:36 (12 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 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 } -
trunk/sources/HeuristicLab.Clients.Access.Views/3.3/HeuristicLab.Clients.Access.Views-3.3.csproj
r8042 r8043 106 106 <DependentUpon>ClientRegistrationDialog.cs</DependentUpon> 107 107 </Compile> 108 <Compile Include="ClientViews\ClientView.cs" /> 108 <Compile Include="ClientViews\ClientView.cs"> 109 <SubType>UserControl</SubType> 110 </Compile> 109 111 <Compile Include="ClientViews\ClientView.Designer.cs"> 110 112 <DependentUpon>ClientView.cs</DependentUpon> … … 132 134 <DependentUpon>LightweightUserGroupSelectionView.cs</DependentUpon> 133 135 </Compile> 134 <Compile Include="UserViews\LightweightUserInformationView.cs" /> 136 <Compile Include="UserViews\LightweightUserInformationView.cs"> 137 <SubType>UserControl</SubType> 138 </Compile> 135 139 <Compile Include="UserViews\LightweightUserInformationView.Designer.cs"> 136 140 <DependentUpon>LightweightUserInformationView.cs</DependentUpon> 137 141 </Compile> 138 <Compile Include="UserViews\RefreshableLightweightUserInformationView.cs" /> 142 <Compile Include="UserViews\RefreshableLightweightUserInformationView.cs"> 143 <SubType>UserControl</SubType> 144 </Compile> 139 145 <Compile Include="UserViews\RefreshableLightweightUserInformationView.Designer.cs"> 140 146 <DependentUpon>RefreshableLightweightUserInformationView.cs</DependentUpon> 141 147 </Compile> 142 <Compile Include="UserViews\LightweightUserView.cs" /> 148 <Compile Include="UserViews\LightweightUserView.cs"> 149 <SubType>UserControl</SubType> 150 </Compile> 143 151 <Compile Include="UserViews\LightweightUserView.Designer.cs"> 144 152 <DependentUpon>LightweightUserView.cs</DependentUpon> 145 153 </Compile> 146 <Compile Include="UserViews\RefreshableLightweightUserView.cs" /> 154 <Compile Include="UserViews\RefreshableLightweightUserView.cs"> 155 <SubType>UserControl</SubType> 156 </Compile> 147 157 <Compile Include="UserViews\RefreshableLightweightUserView.Designer.cs"> 148 158 <DependentUpon>RefreshableLightweightUserView.cs</DependentUpon> 149 159 </Compile> 150 <Compile Include="UserViews\RefreshableView.cs" /> 160 <Compile Include="UserViews\RefreshableView.cs"> 161 <SubType>UserControl</SubType> 162 </Compile> 151 163 <Compile Include="UserViews\RefreshableView.Designer.cs"> 152 164 <DependentUpon>RefreshableView.cs</DependentUpon> -
trunk/sources/HeuristicLab.Clients.Access/3.3/UserInformation.cs
r8042 r8043 25 25 namespace HeuristicLab.Clients.Access { 26 26 public sealed class UserInformation { 27 public const string AdministratorRoleName = "AccessService Administrator"; 28 27 29 private static UserInformation instance; 28 30 public static UserInformation Instance {
Note: See TracChangeset
for help on using the changeset viewer.