class ApplicationInvitePermissionRules {

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

}