Skip to content

Commit

Permalink
Revert "Changed record_class back to use 'get_rec_cls'"
Browse files Browse the repository at this point in the history
This reverts commit 751ec53.
  • Loading branch information
mzazrivec committed Aug 11, 2020
1 parent 742bf95 commit b4e2114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/application_controller/ci_processing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ def retirevms_now
def check_compliance_vms
assert_privileges(params[:pressed])

records = find_records_with_rbac(get_rec_cls, checked_or_params)
records = find_records_with_rbac(record_class, checked_or_params)
# Check each record if there is any compliance policy assigned to it
if records.any? { |record| !record.has_compliance_policies? }
javascript_flash(
Expand Down

0 comments on commit b4e2114

Please sign in to comment.