[bug] fix missing staff setting (#13386) (#13389)

- NOTIFICATION_ERROR_REPORT setting was hidden

(cherry picked from commit 8e83a8a9a1)

Co-authored-by: Oliver <oliver.henry.walters@gmail.com>
This commit is contained in:
github-actions[bot]andOliver authored and GitHub committed 2026-11-27 07:02:33 +11:00
1 parent dc14363434
commit 890b69fd25
2 files changed
+13 -7

No files matched your search

+1 -1
View File
@@ -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,
},
@@ -113,11 +113,17 @@ export default function UserSettings() {
label: t`Notifications`,
icon: <IconBellCog />,
content: (
<PluginSettingsGroup
mixin='notification'
global={false}
message={t`The settings below are specific to each available notification method`}
/>
<Stack gap='xs'>
{/* Error reports are only sent to staff users */}
{user?.is_staff && (
<UserSettingList keys={['NOTIFICATION_ERROR_REPORT']} />
)}
<PluginSettingsGroup
mixin='notification'
global={false}
message={t`The settings below are specific to each available notification method`}
/>
</Stack>
)
},
{
@@ -139,7 +145,7 @@ export default function UserSettings() {
)
}
];
}, []);
}, [user]);
if (!isLoggedIn()) {
return <Skeleton />;