class GrantOfferLetterPermissionRules extends BasePermissionRules {

    @PermissionRule(
            value = "VIEW_GRANT_OFFER_LETTER_SEND_STATUS",
            description = "Stakeholders view the send status of Grant Offer Letter for a project from competition assigned to them")
    public boolean stakeholdersCanViewSendGrantOfferLetterStatus(ProjectResource project, UserResource user) {
        Application application = applicationRepository.findById(project.getApplication()).get();
        return userIsStakeholderInCompetition(application.getCompetition().getId(), user.getId());
    }

}