From 5de415291109d623382b364177f707e4b33e0ee1 Mon Sep 17 00:00:00 2001 From: "Joshua C. Randall" Date: Fri, 13 Jul 2018 16:20:18 +0000 Subject: [PATCH] fix ruby syntax of audit logging disabled check `max_audit_log_delete_batch > 0 && max_audit_log_age == 0` Arvados-DCO-1.1-Signed-off-by: Joshua C. Randall --- services/api/app/models/arvados_model.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/api/app/models/arvados_model.rb b/services/api/app/models/arvados_model.rb index 19f08e7297..2edbb935a1 100644 --- a/services/api/app/models/arvados_model.rb +++ b/services/api/app/models/arvados_model.rb @@ -764,8 +764,8 @@ class ArvadosModel < ActiveRecord::Base end def is_audit_logging_enabled? - return Rails.configuration.max_audit_log_age == 0 - and Rails.configuration.max_audit_log_delete_batch > 0 + return Rails.configuration.max_audit_log_age == 0 && + Rails.configuration.max_audit_log_delete_batch > 0 end def log_start_state -- 2.30.2