Jonathan Bloch napisaƂ(a):
> Sure... a hack of sorts.  Just make some  permissions for "fake" 
> controllers & actions (that need not  exist/do anything useful). Then 
> assign these permissions to the roles you want and use the authorized? 
> method. This gives arbitrarily fine-grained control:
> 
> <% if authorized?(:controller =>'htmlacesscheck' :action => 
> 'thisbitofhtml') %>
>     <!-- Private HTML -->
> <% end %>
> 
> 
>

Oh thanks. But it's nasty! ;]

Peter

_______________________________________________
engine-users mailing list
[email protected]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to