Permission Constraints dont work as intended #11773

Open
opened 2025-12-29 21:49:43 +01:00 by adam · 0 comments
Owner

Originally created by @jschlegelmilch on GitHub (Oct 24, 2025).

NetBox Edition

NetBox Community

NetBox Version

v4.4.4

Python Version

3.10

Steps to Reproduce

  1. Create a permission and add DCIM | location e.g.
  2. add change and delete permissions
  3. add a constraint for this permission to a customfield
    {
    "custom_field_data__netbox_basic_data_managed": false
    }
  4. Try with a user that has read permissions to this object type and this permission with constraint

Expected Behavior

The user should not be able to see the buttons to edit and delete a location (or any other object type, where this custom field is set and the permission is setup to)
This was working fine back in v4.3.7.

Observed Behavior

The Buttons to edit and delete this opbject are still present
Edit throws an error tho, that the requested page was not found, and delete just seem to do nothing.

Originally created by @jschlegelmilch on GitHub (Oct 24, 2025). ### NetBox Edition NetBox Community ### NetBox Version v4.4.4 ### Python Version 3.10 ### Steps to Reproduce 1. Create a permission and add DCIM | location e.g. 2. add change and delete permissions 3. add a constraint for this permission to a customfield { "custom_field_data__netbox_basic_data_managed": false } 4. Try with a user that has read permissions to this object type and this permission with constraint ### Expected Behavior The user should not be able to see the buttons to edit and delete a location (or any other object type, where this custom field is set and the permission is setup to) This was working fine back in v4.3.7. ### Observed Behavior The Buttons to edit and delete this opbject are still present Edit throws an error tho, that the requested page was not found, and delete just seem to do nothing.
adam added the type: bugstatus: needs ownerseverity: low labels 2025-12-29 21:49:43 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#11773