Carrotware.CMS.Core.CmsAuthorizeAttribute.AuthorizeCore C# (CSharp) Метод

AuthorizeCore() защищенный Метод

protected AuthorizeCore ( System.Web.HttpContextBase httpContext ) : bool
httpContext System.Web.HttpContextBase
Результат bool
        protected override bool AuthorizeCore(HttpContextBase httpContext)
        {
            if (!SecurityData.IsAuthenticated) {
                return false;
            }

            if (SecurityData.GetIsAdminFromCache() || SecurityData.GetIsSiteEditorFromCache()) {
                return true;
            }

            return false;
        }