예제 #1
0
        /// <summary>
        /// Does the user have permission to access the admin settings
        /// </summary>
        /// <returns></returns>
        private bool AllowAccess()
        {
            if (!claimsHelper.IsUserAdmin((ClaimsIdentity)User.Identity))
            {
                loggingHelper.LogAuthenticateError(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType, claimsHelper.GetUserNameFromClaim((ClaimsIdentity)User.Identity));
                return(false);
            }

            return(true);
        }