Fixes #20929: Require render_config permission for UI config rendering #736

Closed
opened 2026-04-05 17:22:23 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jnovinger on 12/12/2025

Fixes: #20929

  • Modified ObjectRenderConfigView.has_permission() to require both view and render_config permissions
  • Added remove_permissions() test helper to remove permissions from existing ObjectPermission objects
  • Added regression tests for Device and VirtualMachine render-config permission enforcement

The render_config permission action was introduced in #16681 for API endpoints. This extends PR_7604_description to the UI render-config tabs, preventing users from viewing rendered configurations without explicit permission.

*Originally created by @jnovinger on 12/12/2025* ### Fixes: #20929 - Modified `ObjectRenderConfigView.has_permission()` to require both view and render_config permissions - Added `remove_permissions()` test helper to remove permissions from existing ObjectPermission objects - Added regression tests for Device and VirtualMachine render-config permission enforcement The `render_config` permission action was introduced in #16681 for API endpoints. This extends PR_7604_description to the UI render-config tabs, preventing users from viewing rendered configurations without explicit permission.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#736