Displays roles

This commit is contained in:
2016-06-25 21:05:41 +02:00
parent 1df5d48b5e
commit 3a910212ff

View File

@ -98,7 +98,8 @@ namespace Yavsc.Controllers
PostsCounter = pc,
Balance = user.AccountBalance,
ActiveCommandCount = _dbContext.BookQueries.Count(x => (x.ClientId == user.Id) && (x.EventDate > DateTime.Now)),
HasDedicatedCalendar = !string.IsNullOrEmpty(user.DedicatedGoogleCalendar)
HasDedicatedCalendar = !string.IsNullOrEmpty(user.DedicatedGoogleCalendar),
Roles = await _userManager.GetRolesAsync (user)
};
if (_dbContext.Performers.Any(x => x.PerfomerId == user.Id))
{