Skip to content

Commit

Permalink
Fix policy scope for config publishing pending changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
GUI committed Mar 5, 2018
1 parent a4569a6 commit 0356c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api-umbrella/web-app/app/models/config_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def self.pending_changes(current_admin)
end

if(current_admin)
pending_records = Pundit.policy_scope!(current_admin, pending_records)
pending_records = ApiPolicy::Scope.new(current_admin, pending_records).resolve("backend_publish")
end

pending_records = pending_records.sorted.all
Expand Down

0 comments on commit 0356c6b

Please sign in to comment.