Replies: 3 comments
-
Hi! I don't understand. Could you elaborate, or show some code? |
Beta Was this translation helpful? Give feedback.
-
So here is a generic policy for a Project model:
Let's say Projects are a paid feature of the app and if you have a free account the |
Beta Was this translation helpful? Give feedback.
-
Pundit is very light on purpose, so with the maintainer hat on I'm inclined to say that the solution for this is personal to your project and your requirements, and not something that Pundit is trying to solve. A knee-jerk reaction is to, indeed, add Additionally it looks like your |
Beta Was this translation helpful? Give feedback.
-
Imagine a model is part of a tier on a subscription plan and then you can setup your views etc. accordingly vs having to add some sort of overriding call with an
&&
in each method.Beta Was this translation helpful? Give feedback.
All reactions