From 7b70664a50cec5c248cbedf743a3c17f8d04419e Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Fri, 1 Mar 2013 09:36:15 +0100 Subject: [PATCH] adapts to changed allowed to condition --- app/models/cost_query/filter/permission_filter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/cost_query/filter/permission_filter.rb b/app/models/cost_query/filter/permission_filter.rb index 958db9a802..00271dc9cc 100644 --- a/app/models/cost_query/filter/permission_filter.rb +++ b/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)