diff --git a/app/views/my_projects_overviews/blocks/_members.html.erb b/app/views/my_projects_overviews/blocks/_members.html.erb index 006a472bc8..554ba7014b 100644 --- a/app/views/my_projects_overviews/blocks/_members.html.erb +++ b/app/views/my_projects_overviews/blocks/_members.html.erb @@ -28,13 +28,20 @@ See doc/COPYRIGHT.md for more details.
-<% if @project.members.count > 0 && users_by_role(50).any? %> -- <%= render partial: "members", - locals: { users_by_role: users_by_role(50), - count_users_by_role: count_users_by_role } %> -
+ +<% if current_user.allowed_to?(:view_members, project) %> + <% if @project.members.count > 0 && users_by_role(50).any? %> ++ <%= render partial: "members", + locals: { users_by_role: users_by_role(50), + count_users_by_role: count_users_by_role } %> +
+