From 3a910212ffd7052aa186a099945bc1783c3cfb44 Mon Sep 17 00:00:00 2001 From: Paul Schneider Date: Sat, 25 Jun 2016 21:05:41 +0200 Subject: [PATCH] Displays roles --- Yavsc/Controllers/ManageController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Yavsc/Controllers/ManageController.cs b/Yavsc/Controllers/ManageController.cs index 1228758c..9169a2a3 100644 --- a/Yavsc/Controllers/ManageController.cs +++ b/Yavsc/Controllers/ManageController.cs @@ -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)) {