Exemplo n.º 1
0
        public static bool Verify(string key, HttpContext httpContext)
        {
            UserContext userContext = SessionContainer.GetUserContext(httpContext);

            return(userContext.RoleList == null || userContext.RoleList.Count == 0 || userContext.Authorization.Verify(key));
        }