lib/proxes/policies/request/stats_policy.rb in proxes-0.9.2 vs lib/proxes/policies/request/stats_policy.rb in proxes-0.9.4

- old
+ new

@@ -4,17 +4,9 @@ module ProxES class Request class StatsPolicy < RequestPolicy class Scope < RequestPolicy::Scope - def resolve - return [] if user.nil? - - patterns = Permission.for_user(user, 'INDEX').map do |permission| - permission.pattern.gsub(/\{user.(.*)\}/) { |_match| user.send(Regexp.last_match[1].to_sym) } - end - filter request.index, patterns - end end end end end