class GrantOfferLetterPermissionRules extends BasePermissionRules {

    @PermissionRule(
            value = "SEND_GRANT_OFFER_LETTER",
            description = "Internal users can send the Grant Offer Letter notification")
    public boolean internalUserCanSendGrantOfferLetter(ProjectResource project, UserResource user) {
        return isInternal(user) && isProjectActive(project.getId());
    }

}