On Feb 4, 2012, at 11:11 PM, magicseth wrote: > It's been a while since I've played with hobo (since before 1.0) > > I'm having trouble allowing guests to create but not view tickets. > > > def create_permitted? > true > end > > def view_permitted?(field) > acting_user.administrator? > end > > they cannot view it, therefore, they cannot create it. Is there an > easy way out of this dependency?
changing view_permitted to: new_record? || acting_user.administrator? should work. --Matt Jones -- 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.
