mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-24 08:46:39 +00:00
ContentTypePermission works out 'view' for safe methods and 'change'
otherwise, but its fallback for models without check_permission()
(e.g. Part, StockItem) still passed a hardcoded 'change'. Reading
metadata via the generic metadata endpoint therefore required 'change'
permission, unlike the model's own detail endpoint, which needs 'view'.
(cherry picked from commit 3744e74671)
Co-authored-by: Leon Kiesgen <44964878+LeonKie@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>