diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index a1cbf5ffd9..40debb1f66 100644 --- a/app/controllers/account_controller.rb +++ b/app/controllers/account_controller.rb @@ -30,7 +30,7 @@ class AccountController < ApplicationController # show only public projects and private projects that the logged in user is also a member of @memberships = @user.memberships.select do |membership| - membership.project.is_public? || (User.current.role_for_project(membership.project)) + membership.project.is_public? || (User.current.member_of?(membership.project)) end rescue ActiveRecord::RecordNotFound render_404