Fix bug DNN-3824: correct the logic in UserResultController.HasViewPermission method.