admin care

This commit is contained in:
Andreas Knuth 2024-10-11 13:33:28 -05:00
parent 1282d30b49
commit b9a9b983e9
1 changed files with 3 additions and 0 deletions

View File

@ -132,6 +132,9 @@ export class AccountComponent {
}
async synchronizeSubscriptions(subscriptions: StripeSubscription[]) {
let changed = false;
if (this.isAdmin()) {
return;
}
if (this.subscriptions.length === 0) {
if (!this.user.subscriptionPlan) {
this.router.navigate(['pricing']);