I have a `PurchaseResource` with `field :line_item...
# avo-2
t
I have a
PurchaseResource
with
field :line_items, as: :has_many, hide_on: :index, show_on: :edit
and this renders the LineItemResource panel on Avo 2.11.1 but as soon as I update to 2.12.0 or even the freshly released 2.13.1 that panel disappears
l
what type of license are you using and have you monkey patched anything throught Avo?
t
Pro license (still trial)
Not really a monkey patch -> the logo
l
are you using pundit policies?
t
Yep
Ha that's it...
l
can you go to
PurchasePolicy
and add
def view_line_items?
to
true
?
yeah
t
Yes it's working now, was the policy broken < 2.12.0?
l
we fixed a few things with authorization and pundit policies and that might have caused it
t
I see, thanks!
Working now 😄
l
actually they were broken pre 2.12 🙂
amazing 🙌
thanks for reaching out!
t
Thanks for your help
5 Views