Commit 8cc32f38590731396dd382f42b646a2586e317de

Authored by Victor Costa
1 parent 7832b7ea

rails3: fix render of access denied page

vendor/plugins/access_control/lib/permission_check.rb
@@ -20,7 +20,7 @@ module PermissionCheck @@ -20,7 +20,7 @@ module PermissionCheck
20 target = target_method.kind_of?(Symbol) ? c.send(target_method) : target_method 20 target = target_method.kind_of?(Symbol) ? c.send(target_method) : target_method
21 accessor = accessor_method.kind_of?(Symbol) ? c.send(accessor_method) : accessor_method 21 accessor = accessor_method.kind_of?(Symbol) ? c.send(accessor_method) : accessor_method
22 unless accessor && accessor.has_permission?(permission.to_s, target) 22 unless accessor && accessor.has_permission?(permission.to_s, target)
23 - render_access_denied(c) && false 23 + c.class.render_access_denied(c) && false
24 end 24 end
25 end 25 end
26 end 26 end