This commit is contained in:
18
server/AyaNova/ControllerHelpers/UserRolesFromContext.cs
Normal file
18
server/AyaNova/ControllerHelpers/UserRolesFromContext.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using EnumsNET;
|
||||
using System.Collections.Generic;
|
||||
using AyaNova.Biz;
|
||||
|
||||
namespace AyaNova.Api.ControllerHelpers
|
||||
{
|
||||
|
||||
|
||||
internal static class UserRolesFromContext
|
||||
{
|
||||
internal static AuthorizationRoles Roles(IDictionary<object, object> HttpContextItems)
|
||||
{
|
||||
return (AuthorizationRoles)HttpContextItems["AY_ROLES"];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}//eons
|
||||
Reference in New Issue
Block a user