Update pricing role checks (#893)

* Update pricing role checks

Ref: https://github.com/inventree/InvenTree/pull/13034

* Update release notes
This commit is contained in:
Oliver authored and GitHub committed 2026-10-21 07:00:21 +11:00
1 parent 7554bbdfa2
commit a76675dd4d
5 files changed
+28 -6

No files matched your search

+3 -4
View File
@@ -158,10 +158,9 @@ class _PartDisplayState extends RefreshableState<PartDetailWidget> {
false,
);
showPricing = await InvenTreeSettingsManager().getBool(
INV_PART_SHOW_PRICING,
true,
);
showPricing =
api.canViewPricing &&
await InvenTreeSettingsManager().getBool(INV_PART_SHOW_PRICING, true);
showBom = await InvenTreeSettingsManager().getBool(INV_PART_SHOW_BOM, true);
allowLabelPrinting = await InvenTreeSettingsManager().getBool(
INV_ENABLE_LABEL_PRINTING,