Do you know - can declarative_authorization control access to namespace'd resources or not? I've tried something like
has_permission_on [:admin, :users], :to => [:index, :show, :new, :create, :edit, :update, :destroy, :search]
but it's not working :( any ideas on this?
This will work:
declarative_authorization prefixes the resource name with the namespace as
[:admin, :users]
could also mean that the user has permission on theadmin_controller
and theusers_controller
.