https://avo.cool logo
Hi! i'm newby with AVO but i tried to hide an a...
# avo-2
m
Thread automatically created by sillygirrrl in #740893011994738751
l
Hello @freezing-cricket-25904 yes, that's the correct way
f
besides that the button still appears: #part of the code in the resource: tabs do field pets, as: :has_many, show_on: :edit end #part in the model: has_many :pets, inverse_of: , dependent: :nullify #part in the policies def attach_pets? false end
l
Do you possess a pro license?
f
mmh i don't think so
l
Authorization is a pro feature
f
ohh... okay i get it
f
Mmh Despite that, would this be the correct way? I don't know if the project I work on is pro, but I see that it has policy implementations by a 'role.'
l
Yes, is the correct way, the policy implementation can be unrelated to avo, if you acquire the pro license you can add the
def attach_pets?
to that policy implementations and it should work
f
Thank you
l
You're welcome! Let us know if still not working with a pro license
2 Views