user.organization.plan == 'pro' and <anything else…>
f
fresh-football-47124
05/10/2023, 3:31 AM
It can work like this, and we have spoken to some who use it this way, but it is not as complete as a full identity/entitlement system
fresh-football-47124
05/10/2023, 3:33 AM
but sure, if you’re comfortable using ‘pro’ you can target any sets of features to them
fresh-football-47124
05/10/2023, 3:33 AM
if running client side, people may be able to see which features are disabled/enabled
d
damp-mechanic-13144
05/10/2023, 4:01 AM
Graham, thank you!
I use Django (backend) and self-hosted Lago billing (https://swagger.getlago.com/), I have access to billing PostgreSQL database.
if you’re comfortable using ‘pro’ you can target any sets of features to them
Ideal solution for me:
• somehow limit possible values in plan filter to plan codes from https://swagger.getlago.com/#/plans/findAllPlans (I can create proxy API endpoint on top of it and return list of plan name and plan codes) or create database user with read-only permissions, if I understand correctly I would like to load (enum type) “plan” attribute values dynamically from API or database and this feature is supported
• use plan names (
Standard 1000
) instead of plan codes (
XX1-060-01M-000
) in GUI, if I understand correctly, this feature is not supported