Exemple #1
0
        public bool IsValidUser()
        {
            if (AuthState.IsLogin)
            {
                if (IsSet)
                {
                    return(Level == (AuthLevel)AuthState.User().Permission);
                }
                else
                {
                    return(true);
                }
            }

            return(false);
        }