Ive run into permission problems when forgetting to login - make sure you
aren't a guest

Sent from my EVO

On Jun 9, 2010 9:58 PM, "Matt Jones" <[email protected]> wrote:

Are you getting this as an admin or a regular user? I typically end up
adding new_record? to view_permitted to avoid problems where the record
isn't set up when the permission is called, to avoid this kind of thing...

So you'd have:

def view_permitted?(field)
 new_record? || acting_user.administrator? || acting_user.id == user_id
end

--Matt Jones



On Jun 9, 2010, at 7:09 PM, Steve Pallen wrote:

> How do I trouble shoot this permission problem?...

-- 
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