Skip to content

Commit

Permalink
Fix missing items in renderAccountItem().
Browse files Browse the repository at this point in the history
  • Loading branch information
nomeguy committed Jun 21, 2022
1 parent 0075b7a commit 8d0e92e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion web/src/UserEditPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
// <div>
// {
// JSON.stringify({accountItem: accountItem, isSelf: isSelf, isAdmin: isAdmin})
// }
// </div>
// )

if (accountItem.viewRule === "Self") {
if (!isSelf && !isAdmin) {
return null;
Expand Down

0 comments on commit 8d0e92e

Please sign in to comment.