AutumnA
Autumn3mo ago
6 replies
metiuzucc

Hi there! Just wondering if there's some

Hi there! Just wondering if there's some way to allow users to subscribe to some specific plans based on roles/attributes that comes from by database.

Eg. I have 3 plans --> X Y and Z
I must be able to have users with role === something to subscribe only to the X plan, and users with some other roles to the other plans
Roles are defined in my Convex schema tables.

Is there any way to do this server side (maybe in the convex component?) without relying only on the frontend (simply hiding checkout buttons)?

Many thanks.
Was this page helpful?