feat: add audit trail for sign_in and sign_out (#7158)
* feat: add audit_trail for sign_in event * chore: ignore unrelated User model columns for auditing * chore: fix prepend call for webhook/automation rule * chore: add spec for sign_in event * chore: refactor sign_in auditlog method to enterprise namespace * feat: add sign_out audit trail * feat: review comments
This commit is contained in:
@@ -77,4 +77,4 @@ class AutomationRule < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
AutomationRule.include_mod_with('Audit::Inbox')
|
||||
AutomationRule.include_mod_with('Audit::AutomationRule')
|
||||
|
||||
@@ -166,3 +166,5 @@ class User < ApplicationRecord
|
||||
macros.personal.destroy_all
|
||||
end
|
||||
end
|
||||
|
||||
User.include_mod_with('Audit::User')
|
||||
|
||||
@@ -38,4 +38,4 @@ class Webhook < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
Webhook.include_mod_with('Audit::Inbox')
|
||||
Webhook.include_mod_with('Audit::Webhook')
|
||||
|
||||
Reference in New Issue
Block a user