class ApplicationInvitePermissionRules {

    @PermissionRule(value = "SAVE", description = "lead applicant can save invite to the application")
    public boolean leadApplicantCanSaveInviteToTheApplication(final ApplicationInviteResource invite, final UserResource user) {
        return applicationIsEditableById(invite.getApplication()) && isLeadForInvite(invite, user);
    }

}