aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-11-10 15:51:36 +0100
committerLibravatar vantezzen <hello@vantezzen.io>2019-11-10 15:51:36 +0100
commit93c2dc6a5505f85a402fe80309d9210ea33de16d (patch)
tree179e94f96fcc96ba0b241625ee27bfbbea1648d5
parentMerge branch 'develop' of https://github.com/getferdi/ferdi into develop (diff)
downloadferdium-app-93c2dc6a5505f85a402fe80309d9210ea33de16d.tar.gz
ferdium-app-93c2dc6a5505f85a402fe80309d9210ea33de16d.tar.zst
ferdium-app-93c2dc6a5505f85a402fe80309d9210ea33de16d.zip
Remove unused premium user check
-rw-r--r--src/features/serviceProxy/index.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/features/serviceProxy/index.js b/src/features/serviceProxy/index.js
index e9a01b156..e78607667 100644
--- a/src/features/serviceProxy/index.js
+++ b/src/features/serviceProxy/index.js
@@ -22,7 +22,6 @@ export default function init(stores) {
22 config.isIncludedInCurrentPlan = true; 22 config.isIncludedInCurrentPlan = true;
23 23
24 const services = stores.services.enabled; 24 const services = stores.services.enabled;
25 const isPremiumUser = stores.user.data.isPremium;
26 const proxySettings = stores.settings.proxy; 25 const proxySettings = stores.settings.proxy;
27 26
28 debug('Service Proxy autorun'); 27 debug('Service Proxy autorun');
@@ -30,7 +29,7 @@ export default function init(stores) {
30 services.forEach((service) => { 29 services.forEach((service) => {
31 const s = session.fromPartition(`persist:service-${service.id}`); 30 const s = session.fromPartition(`persist:service-${service.id}`);
32 31
33 if (config.isEnabled && (isPremiumUser || !config.isIncludedInCurrentPlan)) { 32 if (config.isEnabled) {
34 const serviceProxyConfig = proxySettings[service.id]; 33 const serviceProxyConfig = proxySettings[service.id];
35 34
36 if (serviceProxyConfig && serviceProxyConfig.isEnabled && serviceProxyConfig.host) { 35 if (serviceProxyConfig && serviceProxyConfig.isEnabled && serviceProxyConfig.host) {