From 929718b032b63e2279353871a077a0dbfc97d59c Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Fri, 6 Apr 2018 11:03:17 +0100 Subject: [PATCH] Fix to prevent guests from seeing features --- src/settings/handlers/DeviceSettingsHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/settings/handlers/DeviceSettingsHandler.js b/src/settings/handlers/DeviceSettingsHandler.js index 13117f7498..b2a225e190 100644 --- a/src/settings/handlers/DeviceSettingsHandler.js +++ b/src/settings/handlers/DeviceSettingsHandler.js @@ -102,7 +102,7 @@ export default class DeviceSettingsHandler extends SettingsHandler { _readFeature(featureName) { if (MatrixClientPeg.get() && MatrixClientPeg.get().isGuest()) { // Guests should not have any labs features enabled. - return {enabled: false}; + return false; } const value = localStorage.getItem("mx_labs_feature_" + featureName);