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
This commit is contained in:
Jean-Philippe Lang 2006-12-31 17:00:16 +00:00
parent 95cc65f14e
commit e6fa690d65
1 changed files with 1 additions and 1 deletions

View File

@ -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