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