Don't show deactivate button for guests

This commit is contained in:
David Baker 2016-08-03 11:34:31 +01:00
parent 2f0fd6da05
commit f47ac87775

View file

@ -385,6 +385,9 @@ module.exports = React.createClass({
}, },
_renderDeactivateAccount: function() { _renderDeactivateAccount: function() {
// We can't deactivate a guest account.
if (MatrixClientPeg.get().isGuest()) return null;
return <div> return <div>
<h3>Deactivate Account</h3> <h3>Deactivate Account</h3>
<div className="mx_UserSettings_section"> <div className="mx_UserSettings_section">