Skip to content

Commit

Permalink
Fix: Disable suspend button
Browse files Browse the repository at this point in the history
  • Loading branch information
atsu1125 committed Jan 2, 2023
1 parent 203a4e6 commit 6fb511d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/app/common/views/components/user-menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default Vue.extend({
text: this.user.isSilenced ? this.$t('unsilence') : this.$t('silence'),
action: this.toggleSilence
});
if ((!this.user.isAdmin && !this.user.isModerator) || (this.user.isAdmin && this.user.isModerator && this.user.isSuspended)) {
if ((!this.user.isAdmin && !this.user.isModerator) || ((this.user.isAdmin || this.user.isModerator) && this.user.isSuspended)) {
menu = menu.concat({
icon: faSnowflake,
text: this.user.isSuspended ? this.$t('unsuspend') : this.$t('suspend'),
Expand Down

0 comments on commit 6fb511d

Please sign in to comment.