- Timestamp:
- 05/11/16 16:50:29 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Services/Imports/AccessAdministrationClient.cs
r13805 r13844 28 28 using HeuristicLab.Clients.Hive.WebJobManager.Services; 29 29 using System.Collections.Generic; 30 using System.ServiceModel.Security; 30 31 31 32 namespace HeuristicLab.Clients.Access.Administration … … 58 59 weblog = WebLoginService.Instance; 59 60 userId = u; 61 } 62 63 public bool checkAuthorised() 64 { 65 if (client != null) 66 { 67 try 68 { 69 client.GetAllUsers(); 70 return true; 71 } 72 catch (Exception e) 73 { 74 if (e is MessageSecurityException || e is InvalidOperationException) 75 { 76 return false; 77 } 78 throw; 79 } 80 } 81 return false; 60 82 } 61 83
Note: See TracChangeset
for help on using the changeset viewer.