mirror of
https://github.com/element-hq/element-web
synced 2024-11-26 19:26:04 +03:00
Merge pull request #1826 from matrix-org/luke/fix-leaking-features-to-guests
Fix to prevent guests from seeing features
This commit is contained in:
commit
fb9b376cb8
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue