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

Fix usage of helpers

Klaus Zandersfbe360429baf
diff --git a/app/components/users/row_component.rb b/app/components/users/row_component.rb
index 09c3b0358c8..dbd45017bf2 100644
--- a/app/components/users/row_component.rb
+++ b/app/components/users/row_component.rb
@@ -46,7 +46,7 @@ module Users
def login
icon = helpers.avatar user, size: :mini
- link = link_to h(user.login), allowed_management_user_profile_path(user)
+ link = link_to h(user.login), helpers.allowed_management_user_profile_path(user)
icon + link
end
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index e77f48b16b7..fd95abc092d 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -39,7 +39,7 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
</li>
<% end %>
- <% if current_user.allowed_to_globally?(:create_user) %>
+ <% if User.current.allowed_to_globally?(:create_user) %>
<li class="toolbar-item hidden-for-mobile">
<%= form_for(@user, html: { class: 'toolbar-item' },
url: { action: :resend_invitation },