mirror of https://github.com/vector-im/riot-web
Hide buttons only if perrmissions are missing
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>pull/21833/head
parent
7912091bc5
commit
0083cf56bf
|
@ -164,7 +164,7 @@ export default class RoomProfileSettings extends React.Component {
|
|||
const AvatarSetting = sdk.getComponent('settings.AvatarSetting');
|
||||
|
||||
let profileSettingsButtons;
|
||||
if (this.state.enableProfileSave) {
|
||||
if (this.state.canSetTopic && this.state.canSetName) {
|
||||
profileSettingsButtons = (
|
||||
<div className="mx_ProfileSettings_buttons">
|
||||
<AccessibleButton
|
||||
|
|
Loading…
Reference in New Issue