class GrantOfferLetterPermissionRules extends BasePermissionRules {

    @PermissionRule(
            value = "DELETE_SIGNED_GRANT_OFFER",
            description = "Lead partner can delete signed grant offer letter")
    public boolean leadPartnerCanDeleteSignedGrantOfferLetter(ProjectResource project, UserResource user) {
        return isLeadPartner(project.getId(), user.getId()) && isProjectActive(project.getId());
    }

}