Matt Jones wrote:
> On Nov 24, 2009, at 2:16 PM, Mark Jones wrote:
>> def view_permitted?(field)
>> acting_user.administrator? || owner_is?(acting_user)"
>> end
>>
> 
> Try adding "|| new_record?" to the end of that sequence of  
> conditionals - there are still some edge cases where user_view gets  
> called on a new (empty) user record in the new/create actions.
> 

Coincidentally,  I pushed a fix for that yesterday.  So if you use the 
hobo from git://github.com/tablatom/hobo.git, Matt's workaround 
shouldn't be necessary.

If not, please let me know!

thanks,
Bryan

--

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