adapts to changed allowed to condition

pull/6827/head
Jens Ulferts 12 years ago
parent 547505f7d8
commit 7b70664a50
  1. 2
      app/models/cost_query/filter/permission_filter.rb

@ -7,7 +7,7 @@ class CostQuery::Filter::PermissionFilter < CostQuery::Filter::Base
initialize_query_with { |query| query.filter self.to_s.demodulize.to_sym }
def permission_statement(permission)
User.current.allowed_for(permission).gsub(/(user|project)s?\.id/, '\1_id')
User.current.allowed_to_condition_with_project_id(permission).gsub(/(user|project)s?\.id/, '\1_id')
end
def permission_for(type)

Loading…
Cancel
Save