class PartnerOrganisationPermissionRules extends BasePermissionRules {

    @PermissionRule(value = "READ", description = "Competition finances users can see partner organisations on projects in competitions they are assigned to")
    public boolean competitionFinanceUsersCanViewProjects(PartnerOrganisationResource partnerOrganisation, final UserResource user) {
        return userIsExternalFinanceOnCompetitionForProject(partnerOrganisation.getProject(), user.getId());
    }

}