class SpendProfilePermissionRules extends BasePermissionRules {

    @PermissionRule(value = "VIEW_SPEND_PROFILE_STATUS", description = "Innovation lead users can get the approved status of a Spend Profile for any Project")
    public boolean assignedInnovationLeadCanViewSPStatus(ProjectResource project, UserResource user){
        Application application = applicationRepository.findById(project.getApplication()).get();
        return userIsInnovationLeadOnCompetition(application.getCompetition().getId(), user.getId());
    }

}