Commit 642e6403 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix crash on group => show

parent ce484fa9
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
%td.projects_access %td.projects_access
- u.authorized_projects.in_namespace(@group).each do |project| - u.authorized_projects.in_namespace(@group).each do |project|
- u_p = u.users_projects.in_project(project).first - u_p = u.users_projects.in_project(project).first
- next unless u_p
%span %span
= project.name = project.name
= link_to "(#{ u_p.project_access_human })", edit_admin_team_member_path(u_p) = link_to "(#{ u_p.project_access_human })", edit_admin_team_member_path(u_p)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment