mirror of
https://github.com/dbgate/dbgate
synced 2024-11-07 04:00:59 +00:00
fix - community app should not check license
This commit is contained in:
parent
98bff4925a
commit
1d916e43d5
@ -2,6 +2,7 @@ import { apiCall, enableApi, getAuthCategory } from './utility/api';
|
||||
import { getConfig } from './utility/metadataLoaders';
|
||||
import { isAdminPage } from './utility/pageDefs';
|
||||
import getElectron from './utility/getElectron';
|
||||
import { isProApp } from './utility/proTools';
|
||||
|
||||
export function isOauthCallback() {
|
||||
const params = new URLSearchParams(location.search);
|
||||
@ -127,6 +128,9 @@ export async function handleAuthOnStartup(config) {
|
||||
}
|
||||
|
||||
function checkInvalidLicense() {
|
||||
if (!isProApp()) {
|
||||
return;
|
||||
}
|
||||
if (!config.isLicenseValid) {
|
||||
if (config.storageDatabase || getElectron()) {
|
||||
if (isAdminPage()) {
|
||||
@ -142,6 +146,9 @@ export async function handleAuthOnStartup(config) {
|
||||
}
|
||||
|
||||
function checkTrialDaysLeft() {
|
||||
if (!isProApp()) {
|
||||
return;
|
||||
}
|
||||
if (
|
||||
config.trialDaysLeft != null &&
|
||||
config.trialDaysLeft <= 14 &&
|
||||
|
Loading…
Reference in New Issue
Block a user