Displays roles

vnext
Paul Schneider 8 years ago
parent 1df5d48b5e
commit 3a910212ff
1 changed files with 2 additions and 1 deletions

@ -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))
{

Loading…