Skip to content

Commit

Permalink
Fix 500 error when a user owns a project, but not a package
Browse files Browse the repository at this point in the history
When a user owns a project the owner search would return a touple of
[nil, 'some_project']. Our code was not checking for non-existant
packages and thus caused an error.

Fixes #6466
  • Loading branch information
bgeuken committed Dec 5, 2018
1 parent 2861dd2 commit cb1a557
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/api/app/views/webui2/webui/user/_involvement.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@
- owned.each do |package_name, project_name|
%tr
%td
= link_to(package_name, package_show_path(package: package_name, project: project_name))
- if package_name
= link_to(package_name, package_show_path(package: package_name, project: project_name))
%td
= link_to(project_name, project_show_path(project: project_name))

Expand Down

0 comments on commit cb1a557

Please sign in to comment.