mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-16 20:22:15 +01:00
add estimated project and tasks frontend
This commit is contained in:
@@ -57,3 +57,12 @@ export function hasActiveSubscription() {
|
||||
|
||||
return page.props.billing.has_subscription;
|
||||
}
|
||||
|
||||
export function isAllowedToPerformPremiumAction() {
|
||||
return true;
|
||||
return (
|
||||
!isBillingActivated() ||
|
||||
(isBillingActivated() && hasActiveSubscription()) ||
|
||||
(isBillingActivated() && isInTrial())
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user