From 890b69fd256b27d049b79ea90c3bbf93128244c1 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 27 Nov 2026 07:02:33 +1100 Subject: [PATCH] [bug] fix missing staff setting (#13386) (#13389) - NOTIFICATION_ERROR_REPORT setting was hidden (cherry picked from commit 8e83a8a9a1d8142ca5822e775761bdb29c905cf4) Co-authored-by: Oliver --- src/backend/InvenTree/common/setting/user.py | 2 +- .../src/pages/Index/Settings/UserSettings.tsx | 18 ++++++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/src/backend/InvenTree/common/setting/user.py b/src/backend/InvenTree/common/setting/user.py index f50c4a6ed5..d4456d3899 100644 --- a/src/backend/InvenTree/common/setting/user.py +++ b/src/backend/InvenTree/common/setting/user.py @@ -299,7 +299,7 @@ USER_SETTINGS: dict[str, InvenTreeSettingsKeyType] = { }, 'NOTIFICATION_ERROR_REPORT': { 'name': _('Receive error reports'), - 'description': _('Receive notifications for system errors'), + 'description': _('Receive notifications for system errors (staff users only)'), 'default': True, 'validator': bool, }, diff --git a/src/frontend/src/pages/Index/Settings/UserSettings.tsx b/src/frontend/src/pages/Index/Settings/UserSettings.tsx index d83f7e82cb..83164aa957 100644 --- a/src/frontend/src/pages/Index/Settings/UserSettings.tsx +++ b/src/frontend/src/pages/Index/Settings/UserSettings.tsx @@ -113,11 +113,17 @@ export default function UserSettings() { label: t`Notifications`, icon: , content: ( - + + {/* Error reports are only sent to staff users */} + {user?.is_staff && ( + + )} + + ) }, { @@ -139,7 +145,7 @@ export default function UserSettings() { ) } ]; - }, []); + }, [user]); if (!isLoggedIn()) { return ;