Hey, you're right, there is a bug in the can_view? helper:

http://github.com/tablatom/hobo/tree/master/hobo/lib/hobo/hobo_helper.rb#L308

This should of course be checking vor viewable_by? not viewable_by
I think Tom is not around currently, so you have to correct it
yourself in the meantime.

I noticed that this helper is only used in collections, not in tables,
does anyone know if there is a reason for this?


On Fri, Dec 12, 2008 at 12:02:29AM -0800, rolando wrote:
> 
> Hello
> 
> How do I set the view permissions with the new permission system on
> the index action
> 
> I tried
> 
>   def view_permitted?(field)
>     acting_user.signed_up?
>   end
> 
> This acts on the show action but does not hide the records in the
> index action, like the former
> 
>   def .viewable_by?(user,field)
>     user.signed_up?
>   end
> 
> In this section of the manual the index action is not covered
> 
> http://cookbook.hobocentral.net/manual/permissions#view_permission_and_
> 
> any hints on how I can make guests see none of the records?
> 
> Thanks
> 
> Roland
> 
> 

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to