respect has_subscription property in frontend for displaying the member add popup

This commit is contained in:
Gregor Vostrak
2024-07-02 17:17:27 +02:00
parent 6593a8c24f
commit 8f0be6efce

View File

@@ -9,6 +9,11 @@ export function isBillingActivated() {
} }
export function hasActiveSubscription() { export function hasActiveSubscription() {
// TODO: Replace with server side check const page = usePage<{
return true; billing: {
has_subscription: boolean;
};
}>();
return page.props.billing.has_subscription;
} }