Commit 8cc32f38590731396dd382f42b646a2586e317de
1 parent
7832b7ea
Exists in
master
and in
29 other branches
rails3: fix render of access denied page
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
vendor/plugins/access_control/lib/permission_check.rb
| ... | ... | @@ -20,7 +20,7 @@ module PermissionCheck |
| 20 | 20 | target = target_method.kind_of?(Symbol) ? c.send(target_method) : target_method |
| 21 | 21 | accessor = accessor_method.kind_of?(Symbol) ? c.send(accessor_method) : accessor_method |
| 22 | 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 | 24 | end |
| 25 | 25 | end |
| 26 | 26 | end | ... | ... |