class ApplicationFinancePermissionRules extends BasePermissionRules {

    @PermissionRule(value = "READ", description = "An assessor can see the application finances for organisations in the applications they assess")
    public boolean assessorCanSeeTheApplicationFinanceForOrganisationsInApplicationsTheyAssess(final ApplicationFinanceResource applicationFinanceResource, final UserResource user) {
        return isAssessor(applicationFinanceResource.getApplication(), user) || isInterviewAssessor(applicationFinanceResource.getApplication(), user);
    }

}