diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-04 18:02:34 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-04 18:02:34 +0000 |
commit | 860ff9345fdd170a04201374150334d23d55634c (patch) | |
tree | fcd0db2a5edb69e309d26d5d635f9a019b233b02 | |
parent | bd85c0cbb1a0c217da862be31e5ee30fa6716e40 (diff) | |
download | redmine-860ff9345fdd170a04201374150334d23d55634c.tar.gz redmine-860ff9345fdd170a04201374150334d23d55634c.zip |
Fixed: private projects name are displayed on account/show even if the current user doesn't have access to these private projects.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1036 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/account_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/account_controller.rb b/app/controllers/account_controller.rb index a1cbf5ffd..40debb1f6 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 |