Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/11/16 16:50:29 (9 years ago)
Author:
jlodewyc
Message:

#2582 Optimizing open file view by cutting down batches to 1. Logging system in navbar. Start authenticationCheck

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Services/Imports/AccessAdministrationClient.cs

    r13805 r13844  
    2828using HeuristicLab.Clients.Hive.WebJobManager.Services;
    2929using System.Collections.Generic;
     30using System.ServiceModel.Security;
    3031
    3132namespace HeuristicLab.Clients.Access.Administration
     
    5859            weblog = WebLoginService.Instance;
    5960            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;
    6082        }
    6183
Note: See TracChangeset for help on using the changeset viewer.