summaryrefslogtreecommitdiff
path: root/app/services/audit_event_service.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-02 09:10:09 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-02 09:10:09 +0000
commit1930898566965dbc1bd779089ec9e58e17674268 (patch)
treea1e4384e4e8927431b637daa885dc8793cbb0035 /app/services/audit_event_service.rb
parent2691cff8296517651e4bcd8adac09640f8cc28f5 (diff)
downloadgitlab-ce-1930898566965dbc1bd779089ec9e58e17674268.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/audit_event_service.rb')
-rw-r--r--app/services/audit_event_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/audit_event_service.rb b/app/services/audit_event_service.rb
index 2fc32c1ba85..558798c830d 100644
--- a/app/services/audit_event_service.rb
+++ b/app/services/audit_event_service.rb
@@ -111,7 +111,7 @@ class AuditEventService
end
def log_security_event_to_database
- return if Gitlab::Database.main.read_only?
+ return if Gitlab::Database.read_only?
event = AuditEvent.new(base_payload.merge(details: @details))
save_or_track event
@@ -120,7 +120,7 @@ class AuditEventService
end
def log_authentication_event_to_database
- return unless Gitlab::Database.main.read_write? && authentication_event?
+ return unless Gitlab::Database.read_write? && authentication_event?
event = AuthenticationEvent.new(authentication_event_payload)
save_or_track event