Fix premium account not detected

pull/1/head
yflory 3 years ago
parent a8537903ad
commit 851419f5b8

@ -676,8 +676,9 @@ define([
} }
var priv = metaObj.priv; var priv = metaObj.priv;
var _plan = priv.offline ? Utils.LocalStore.getPremium() : priv.plan;
var p = Utils.Util.checkRestrictedApp(parsed.type, AppConfig, var p = Utils.Util.checkRestrictedApp(parsed.type, AppConfig,
Utils.Constants.earlyAccessApps, priv.plan, additionalPriv.loggedIn); Utils.Constants.earlyAccessApps, _plan, additionalPriv.loggedIn);
if (p === 0 || p === -1) { if (p === 0 || p === -1) {
additionalPriv.premiumOnly = true; additionalPriv.premiumOnly = true;
} }

Loading…
Cancel
Save