class ReviewPermissionRules extends BasePermissionRules {

    @PermissionRule(value = "READ_PANEL_DASHBOARD", description = "Assessors can view all Assessment Reviews on the competition " +
            "dashboard, except those rejected or withdrawn")
    public boolean userCanReadAssessmentReviewOnDashboard(ReviewResource assessmentReview, UserResource user) {
        Set<ReviewState> allowedStates = EnumSet.of(PENDING, ACCEPTED);
        return isAssessorForAssessmentReview(assessmentReview, user, allowedStates);
    }

}