Example
For example, if your app allows users to generate videos, you can create a permission calledgenerate-videos
.
Then, you can set the permission generate-videos
to true for members on the premium plan and false for members on the free plan.
Then from your frontend code, you could display a button to generate videos only if the user has the permission generate-videos
set to true.
Example code: