diff options
-rw-r--r-- | src/config.js | 1 | ||||
-rw-r--r-- | src/features/workspaces/index.js | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/config.js b/src/config.js index d7a485b8a..d327185f0 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -37,6 +37,7 @@ export const DEFAULT_FEATURES_CONFIG = { | |||
37 | }, | 37 | }, |
38 | isServiceProxyEnabled: false, | 38 | isServiceProxyEnabled: false, |
39 | isServiceProxyPremiumFeature: true, | 39 | isServiceProxyPremiumFeature: true, |
40 | isWorkspacePremiumFeature: true, | ||
40 | isWorkspaceEnabled: true, | 41 | isWorkspaceEnabled: true, |
41 | }; | 42 | }; |
42 | 43 | ||
diff --git a/src/features/workspaces/index.js b/src/features/workspaces/index.js index b7e1090e8..b4cfd3c2d 100644 --- a/src/features/workspaces/index.js +++ b/src/features/workspaces/index.js | |||
@@ -13,7 +13,11 @@ export const state = observable(defaultState); | |||
13 | export default function initWorkspaces(stores, actions) { | 13 | export default function initWorkspaces(stores, actions) { |
14 | const { features, user } = stores; | 14 | const { features, user } = stores; |
15 | reaction( | 15 | reaction( |
16 | () => features.features.isWorkspaceEnabled && user.isLoggedIn, | 16 | () => ( |
17 | features.features.isWorkspaceEnabled && ( | ||
18 | !features.features.isWorkspacePremiumFeature || user.data.isPremium | ||
19 | ) | ||
20 | ), | ||
17 | (isEnabled) => { | 21 | (isEnabled) => { |
18 | if (isEnabled) { | 22 | if (isEnabled) { |
19 | debug('Initializing `workspaces` feature'); | 23 | debug('Initializing `workspaces` feature'); |