From 8e83a8a9a1d8142ca5822e775761bdb29c905cf4 Mon Sep 17 00:00:00 2001 From: Oliver Date: Thu, 26 Nov 2026 19:14:44 +1100 Subject: [PATCH] [bug] fix missing staff setting (#13386) - NOTIFICATION_ERROR_REPORT setting was hidden --- 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 1e3bfeb4c5..ab4c34661e 100644 --- a/src/backend/InvenTree/common/setting/user.py +++ b/src/backend/InvenTree/common/setting/user.py @@ -283,7 +283,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 fed675edd5..f7914f74a1 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 && ( + + )} + + ) }, { @@ -135,7 +141,7 @@ export default function UserSettings() { ) } ]; - }, []); + }, [user]); if (!isLoggedIn()) { return ;