diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-09-20 18:28:14 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-09-20 19:09:43 +0200 |
commit | 47e926bec0a9da28daaca7dc92415b25f2301daf (patch) | |
tree | 1af109baecd783f4db5d8e618275791ccfd2da79 /app/controllers | |
parent | 23f9a64566ec0da50c9ee842ba749a8f33eacb8e (diff) | |
download | gitlab-ce-47e926bec0a9da28daaca7dc92415b25f2301daf.tar.gz |
Minor code cleanupnotification-levels
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects_controller.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 9aed6a19e54..213c2a7173b 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -86,9 +86,10 @@ class ProjectsController < ApplicationController if @project.empty_repo? render 'projects/empty' else - unless current_user.nil? - @membership = @project.project_members.find_by_user_id(current_user.id) + if current_user + @membership = @project.project_member_by_id(current_user.id) end + render :show end else |