summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/controllers/projects_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 009e856d93c..9aed6a19e54 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -87,7 +87,7 @@ class ProjectsController < ApplicationController
render 'projects/empty'
else
unless current_user.nil?
- @membership = @project.project_members.where(user_id: current_user.id).first
+ @membership = @project.project_members.find_by_user_id(current_user.id)
end
render :show
end