lib/proxes/policies/request/index_policy.rb in proxes-0.9.13 vs lib/proxes/policies/request/index_policy.rb in proxes-0.10.1

- old
+ new

@@ -6,14 +6,9 @@ module ProxES class Request class IndexPolicy < RequestPolicy class Scope < RequestPolicy::Scope - def resolve - result = super - return [] unless result.count > 0 - %w[POST PUT].include?(request.request_method) ? request.index : result - end end end end end