stffn / declarative_authorization

An unmaintained authorization plugin for Rails. Please fork to support current versions of Rails
MIT License
1.24k stars 230 forks source link

permitted_to? returns invalid results when called from a helper #144

Closed cthielen closed 12 years ago

cthielen commented 12 years ago

In order to allow admin users to impersonate other users, I wrote an allowed_to? that tries to call permitted_to? if there is no impersonation occurring. However, permitted_to?, from a controller, seems to return nothing at all.

Any idea what's going on?