Displays roles
This commit is contained in:
parent
7efd5749a0
commit
6a1d4b599e
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…
Add table
Add a link
Reference in a new issue