class ReviewParticipantPermissionRules extends BasePermissionRules {

    @PermissionRule(value = "ACCEPT", description = "only the same user can accept a panel invitation")
    public boolean userCanAcceptAssessmentPanelInvite(ReviewParticipantResource assessmentPanelParticipant, UserResource user) {
        return user != null &&
                assessmentPanelParticipant != null &&
                isSameUser(assessmentPanelParticipant, user);
    }

}