diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-02 09:10:09 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-02 09:10:09 +0000 |
commit | 1930898566965dbc1bd779089ec9e58e17674268 (patch) | |
tree | a1e4384e4e8927431b637daa885dc8793cbb0035 /app/services/audit_event_service.rb | |
parent | 2691cff8296517651e4bcd8adac09640f8cc28f5 (diff) | |
download | gitlab-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.rb | 4 |
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 |