@@ -56,7 +56,7 class Permission < ActiveRecord::Base | |||||
56 | find(:all, :include => :roles).each {|p| perms.store "#{p.controller}/#{p.action}", p.roles.collect {|r| r.id } } |
|
56 | find(:all, :include => :roles).each {|p| perms.store "#{p.controller}/#{p.action}", p.roles.collect {|r| r.id } } | |
57 | perms |
|
57 | perms | |
58 | end |
|
58 | end | |
59 | @@cached_perms_for_roles[action] and @@cached_perms_for_roles[action].include? role |
|
59 | allowed_to_public(action) or (@@cached_perms_for_roles[action] and @@cached_perms_for_roles[action].include? role) | |
60 | end |
|
60 | end | |
61 |
|
61 | |||
62 | def self.allowed_to_role_expired |
|
62 | def self.allowed_to_role_expired |
General Comments 0
You need to be logged in to leave comments.
Login now