diff --git a/web/src/UserEditPage.js b/web/src/UserEditPage.js index 74f4d936..27f4f5a8 100644 --- a/web/src/UserEditPage.js +++ b/web/src/UserEditPage.js @@ -129,9 +129,17 @@ class UserEditPage extends React.Component { return null; } - const isSelf = this.state.user.id === this.props.account; + const isSelf = this.state.user.id === this.props.account?.id; const isAdmin = Setting.isAdminUser(this.props.account); + // return ( + //
+ // { + // JSON.stringify({accountItem: accountItem, isSelf: isSelf, isAdmin: isAdmin}) + // } + //
+ // ) + if (accountItem.viewRule === "Self") { if (!isSelf && !isAdmin) { return null;