class ApplicationInvitePermissionRules {

    @PermissionRule(value = "DELETE", description = "lead applicant can delete as long as its not their own.")
    public boolean leadCanDeleteNotOwnInvite(final ApplicationInviteResource invite, final UserResource user) {
        return applicationIsEditableById(invite.getApplication()) && isNotOwnInvite(invite, user) && isLeadForInvite(invite, user);
    }

}