Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/30/16 16:52:40 (8 years ago)
Author:
jlodewyc
Message:

#2582 Start angular OKB manager, data loaded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/WebJobManager/HeuristicLab.Clients.Hive.WebJobManager/Controllers/UserController.cs

    r13860 r13862  
    2020#endregion
    2121
    22 using HeuristicLab.Clients.Access.Administration;
    2322using HeuristicLab.Clients.Hive.WebJobManager.Services;
     23using HeuristicLab.Clients.Hive.WebJobManager.Services.Imports;
    2424using HeuristicLab.Clients.Hive.WebJobManager.ViewModels.User;
    2525using Microsoft.AspNetCore.Hosting;
     
    2727using Microsoft.AspNetCore.Mvc;
    2828using System;
    29 using System.Collections.Generic;
    30 using System.Linq;
    31 using System.Net.Mail;
    32 using System.ServiceModel.Security;
    33 using System.Threading.Tasks;
    3429
    3530namespace HeuristicLab.Clients.Hive.WebJobManager.Controllers
     
    191186                    accessClient.addMember(user, group);
    192187                }
    193                 return RedirectToAction("SelectUser", new { id = uid.ToString() });
     188                if (uid != Guid.Empty && uid == weblog.getCurrentUser(userId).currentUser.Id)
     189                    return RedirectToAction("Index", "Home");//Logout if current user
     190                else
     191                    return RedirectToAction("SelectUser", new { id = uid.ToString() });
    194192            }
    195193            else
Note: See TracChangeset for help on using the changeset viewer.