Project

General

Profile

« Previous | Next » 

Revision 29c03d44

Added by Daniel Lobato Garcia almost 7 years ago

Fixes #19952 - Allow view_audit_logs to work

Every time the /audits page is visited by a non-admin user, it checks
whether the permission 'view_audit_logs' is for the Audit class. In
previous versions of 'audited', this was
Audited::Adapters::ActiveRecord::Audit, but right now it's simply
Audited::Audit.

To test the change, visit the page with an user that just has the
'view_audit_logs' permission. Check how without updating the
authorizer.rb file, /audits will be empty.

(cherry picked from commit 3cf5b75af76d69fc6db869a44654db1d3133c665)

  • added
  • modified
  • copied
  • renamed
  • deleted