summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-02 20:59:47 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-01-02 20:59:47 +0200
commit642e64034c44216362a65e1bc8eebb1931146056 (patch)
tree84c5a197a99fd15baae8f7307ad026af287067af
parentce484fa9da2edd7e2be98600e2fe81770de31a90 (diff)
downloadgitlab-ce-642e64034c44216362a65e1bc8eebb1931146056.tar.gz
Fix crash on group => show
-rw-r--r--app/views/admin/groups/show.html.haml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/admin/groups/show.html.haml b/app/views/admin/groups/show.html.haml
index a17b431de26..0a25b125905 100644
--- a/app/views/admin/groups/show.html.haml
+++ b/app/views/admin/groups/show.html.haml
@@ -78,6 +78,7 @@
%td.projects_access
- u.authorized_projects.in_namespace(@group).each do |project|
- u_p = u.users_projects.in_project(project).first
+ - next unless u_p
%span
= project.name
= link_to "(#{ u_p.project_access_human })", edit_admin_team_member_path(u_p)