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

Don't show user profile invite button

Oliver Günther6ef4467b5b3f
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 1c8b7d36de3..1dbf16cc1df 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -55,7 +55,7 @@ See COPYRIGHT and LICENSE files for more details.
end
end
- if current_user.allowed_globally?(:create_user)
+ if current_user.allowed_globally?(:create_user) && current_user != @user
header.with_action_button(tag: :a,
mobile_icon: :pencil,
mobile_label: t(:label_send_invitation),