Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Remove unused method in Costs AttributesHelper

Klaus Zanders607bcc06514e
diff --git a/modules/costs/lib/costs/attributes_helper.rb b/modules/costs/lib/costs/attributes_helper.rb
index 5ca7c9cc797..edeba410664 100644
--- a/modules/costs/lib/costs/attributes_helper.rb
+++ b/modules/costs/lib/costs/attributes_helper.rb
@@ -83,11 +83,5 @@ module Costs
time_entries_with_rate = time_entries.select { |c| c.costs_visible_by?(@user) }
time_entries_with_rate.blank? ? nil : time_entries_with_rate.sum(&:real_costs)
end
-
- def user_allowed_to?(*privileges)
- privileges.inject(false) do |result, privilege|
- result || @user.allowed_in_project?(privilege, @work_package.project)
- end
- end
end
end