Inits the workflow configuration

This commit is contained in:
Paul Schneider
2024-02-25 18:05:10 +00:00
parent 70d24e17d8
commit 834866663a
286 changed files with 33661 additions and 64633 deletions

View File

@ -102,7 +102,7 @@ namespace Yavsc.Controllers
var youAreAdmin = await _userManager.IsInRoleAsync(
await _userManager.FindByIdAsync(User.GetUserId()),
Constants.AdminGroupName);
throw new NotImplementedException();
var roles = _roleManager.Roles.Select(x => new RoleInfo {
Id = x.Id,
Name = x.Name
@ -110,7 +110,6 @@ namespace Yavsc.Controllers
var assembly = GetType().Assembly;
ViewBag.ThisAssembly = assembly.FullName;
ViewBag.RunTimeVersion = assembly.ImageRuntimeVersion;
ViewBag.HostContextFullName = Startup.HostingFullName;
return View(new AdminViewModel
{
Roles = roles.ToArray(),
@ -120,7 +119,6 @@ namespace Yavsc.Controllers
});
}
[Authorize("AdministratorOnly")]
public IActionResult Enroll(string roleName)
{