web: People: Denied self removing by Owner

This commit is contained in:
Alexey Safronov 2019-09-03 14:09:15 +03:00
parent b4438b5be9
commit e07895c1a4

View File

@ -358,7 +358,9 @@ class SectionBodyContent extends React.PureComponent {
onClick: this.onChangeEmailClick.bind(this, user.email)
},
isSelf
? {
? viewer.isOwner
? {}
: {
key: "delete-profile",
label: t("DeleteSelfProfile"),
onClick: this.onDeleteSelfProfileClick.bind(this, user.email)