From 5cf02124ed39bed88b21417964df4542c40db0a3 Mon Sep 17 00:00:00 2001 From: Claire Date: Mon, 24 Oct 2022 17:37:46 +0200 Subject: [PATCH] [Glitch] Fix WebUI notification settings for new user and new report notifications Port 0e682bbe241e45e0ea1c279e56aff7345ba2ffc9 to glitch-soc Signed-off-by: Claire --- .../features/notifications/components/column_settings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/flavours/glitch/features/notifications/components/column_settings.js b/app/javascript/flavours/glitch/features/notifications/components/column_settings.js index 42ab9de35b..ee05c7fd6b 100644 --- a/app/javascript/flavours/glitch/features/notifications/components/column_settings.js +++ b/app/javascript/flavours/glitch/features/notifications/components/column_settings.js @@ -171,7 +171,7 @@ export default class ColumnSettings extends React.PureComponent { - {(this.context.identity.permissions & PERMISSION_MANAGE_USERS === PERMISSION_MANAGE_USERS) && ( + {((this.context.identity.permissions & PERMISSION_MANAGE_USERS) === PERMISSION_MANAGE_USERS) && (
@@ -184,7 +184,7 @@ export default class ColumnSettings extends React.PureComponent {
)} - {(this.context.identity.permissions & PERMISSION_MANAGE_REPORTS === PERMISSION_MANAGE_REPORTS) && ( + {((this.context.identity.permissions & PERMISSION_MANAGE_REPORTS) === PERMISSION_MANAGE_REPORTS) && (