Skip to content

Commit f7e7f76

Browse files
committed
fix: pro logo doesnt go away on logout on top left navbar
1 parent 96ba960 commit f7e7f76

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,7 @@
350350
baseURL: _getBaseURL(),
351351
isTestWindow: _isTestWindow(),
352352
firstBoot: false, // will be set below
353-
pro: {},
353+
pro: {}, // this is only for display purposes and should not be used to gate features. use kernal mode for that
354354
startTime: Date.now(),
355355
TRUSTED_ORIGINS: {
356356
// if modifying this list, make sure to update in https://github.com/phcode-dev/phcode.live/blob/main/docs/trustedOrigins.js

src/services/profile-menu.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,13 @@ define(function (require, exports, module) {
190190
function _updateBranding(entitlements) {
191191
const $brandingLink = $("#phcode-io-main-nav");
192192
if (!entitlements) {
193+
// Phoenix.pro is only for display purposes and should not be used to gate features.
194+
// Use kernal mode apis for trusted check of pro features.
193195
Phoenix.pro.plan = {
194196
paidSubscriber: false,
195197
name: "Community Edition",
196198
isInTrial: false
197199
};
198-
return;
199200
}
200201

201202
if (entitlements && entitlements.plan){

0 commit comments

Comments
 (0)