summaryrefslogtreecommitdiffstats
path: root/lib/redmine/access_control.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-01-11 11:47:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-01-11 11:47:26 +0000
commit9ad2ca61da9d91ac0d7de999ce492bbeb3a0449c (patch)
tree4deee0e5202c32ff3e1cfdc4df2d31ae8e62badb /lib/redmine/access_control.rb
parentde19424ea5b5c273817732a28a7f7ca6073e4107 (diff)
downloadredmine-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.rb2
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