diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-01-11 11:47:26 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-01-11 11:47:26 +0000 |
commit | 9ad2ca61da9d91ac0d7de999ce492bbeb3a0449c (patch) | |
tree | 4deee0e5202c32ff3e1cfdc4df2d31ae8e62badb /lib/redmine/access_control.rb | |
parent | de19424ea5b5c273817732a28a7f7ca6073e4107 (diff) | |
download | redmine-9ad2ca61da9d91ac0d7de999ce492bbeb3a0449c.tar.gz redmine-9ad2ca61da9d91ac0d7de999ce492bbeb3a0449c.zip |
Fixed: cannot retrieve members for closed projects through the REST API (#15848).
git-svn-id: http://svn.redmine.org/redmine/trunk@12650 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/access_control.rb')
-rw-r--r-- | lib/redmine/access_control.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/access_control.rb b/lib/redmine/access_control.rb index 7c4a5a5ec..56927845d 100644 --- a/lib/redmine/access_control.rb +++ b/lib/redmine/access_control.rb @@ -60,7 +60,7 @@ module Redmine !perm.nil? && perm.read? else s = "#{action[:controller]}/#{action[:action]}" - permissions.detect {|p| p.actions.include?(s) && !p.read?}.nil? + permissions.detect {|p| p.actions.include?(s) && p.read?}.present? end end |