Enable or disable default actions per model #645
Replies: 2 comments 1 reply
-
Hey Bruno, Unfortunately, there isn't another way to hide those buttons. Pundit policies work very nice for this scenario. When you decide to add policies, they will not really collide with Avo's functionality. There are a few common methods that you can easily override, so they don't clash with your own. I haven't worked with the Action policy package before. However, it looks like it's an excellent package. Regarding the price, we do have a discount for start-ups, open-source or educational projects, so reach out to us if you need it. The price is currently discounted until we launch all the in-development features. Thanks for reaching out! |
Beta Was this translation helpful? Give feedback.
-
Thanks for your response! Yes, I think the price is right. I was referring to GraphQL's price which is prohibitive for me at least, USD $900 a year. I looked into that feature to replace the default policies. The problem is that if I use Action policy, I could not comfortably implement Pundit policies as well because the classes would collide, since both libraries use the same conventions. That's why I was asking if there is a pundit-free workaround to do that, so that any method that returns true/false can be used without tying to the use of a specific authorization library. It could even be calling a simple method of a model. Would something like that add too much complexity? |
Beta Was this translation helpful? Give feedback.
-
Hi! great gem!
I would like to know if it is possible to disable some actions per model for all users without using pundit. I don't really need advanced authorization, just be able to disable some actions for read-only models for all users.
I also wonder if in the future, in case I implement policies, they would not collide with the ones for Avo? Anyway, I intend to use Action Policy instead of Pundit, as it has an extension to use it with GraphQL, and so I can dispense with GraphQL pro which for me as a student is highly prohitive for the price.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions