class GrantClaimMaximumPermissionRules extends BasePermissionRules {

    @PermissionRule(value = "MAX_FUNDING_LEVEL_OVERRIDDEN",
        description = "A user can see the grant claim maximums if they are in a project for the competition")
    public boolean userInAProjectCanCheckMaxFundingLevelOverridden
        (CompetitionResource competition, UserResource user) {
        return projectUserRepository.existsByProjectApplicationCompetitionIdAndUserId(competition.getId(), user.getId());
    }

}