From f703669d6b55e948b69713421cc91e473592d8d4 Mon Sep 17 00:00:00 2001
From: Jens Ulferts
Date: Thu, 25 Aug 2016 13:34:55 +0200
Subject: [PATCH] fix permission check before link
---
app/views/my_projects_overviews/blocks/_members.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/my_projects_overviews/blocks/_members.html.erb b/app/views/my_projects_overviews/blocks/_members.html.erb
index 4f5a6cb898..f5146eaa7a 100644
--- a/app/views/my_projects_overviews/blocks/_members.html.erb
+++ b/app/views/my_projects_overviews/blocks/_members.html.erb
@@ -45,7 +45,7 @@ See doc/COPYRIGHT.md for more details.
<% end %>
-<% if current_user.admin? %>
+<% if current_user.allowed_to?(:manage_members, project) %>
<%= link_to project_members_path(project_id: project.identifier), class: 'button -alt-highlight' do %>
<%= t('activerecord.models.member') %>