Skip to content
Snippets Groups Projects
Commit e6fa690d authored by Jean-Philippe Lang's avatar Jean-Philippe Lang
Browse files

fixed: public actions not authorized for members of non public projects

git-svn-id: http://redmine.rubyforge.org/svn/trunk@128 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 95cc65f1
Branches
Tags
No related merge requests found
...@@ -56,7 +56,7 @@ class Permission < ActiveRecord::Base ...@@ -56,7 +56,7 @@ class Permission < ActiveRecord::Base
find(:all, :include => :roles).each {|p| perms.store "#{p.controller}/#{p.action}", p.roles.collect {|r| r.id } } find(:all, :include => :roles).each {|p| perms.store "#{p.controller}/#{p.action}", p.roles.collect {|r| r.id } }
perms perms
end end
@@cached_perms_for_roles[action] and @@cached_perms_for_roles[action].include? role allowed_to_public(action) or (@@cached_perms_for_roles[action] and @@cached_perms_for_roles[action].include? role)
end end
def self.allowed_to_role_expired def self.allowed_to_role_expired
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment