[PR #4963] [MERGED] Closes #4946: Extend ObjectPermission constraints to OR multiple JSON objects #12950

Closed
opened 2025-12-29 22:24:33 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/4963
Author: @jeremystretch
Created: 8/6/2020
Status: Merged
Merged: 8/6/2020
Merged by: @jeremystretch

Base: develop-2.9Head: 4946-objectpermission-or-constraints


📝 Commits (1)

  • 4a51610 Extend ObjectPermission constraints to OR multiple JSON objects

📊 Changes

5 files changed (+49 additions, -16 deletions)

View changed files

📝 docs/administration/permissions.md (+9 -7)
📝 docs/models/users/objectpermission.md (+19 -3)
📝 netbox/netbox/authentication.py (+4 -1)
📝 netbox/users/admin.py (+9 -4)
📝 netbox/utilities/querysets.py (+8 -1)

📄 Description

Closes: #4946

Allows the user to specify a list of JSON objects to effect a logical OR among them when applying the permission constraints. Support for specifying a single object is maintained as well.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbox-community/netbox/pull/4963 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 8/6/2020 **Status:** ✅ Merged **Merged:** 8/6/2020 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `develop-2.9` ← **Head:** `4946-objectpermission-or-constraints` --- ### 📝 Commits (1) - [`4a51610`](https://github.com/netbox-community/netbox/commit/4a516103a6ab37f2c88b1f61af1cdd0f37b27760) Extend ObjectPermission constraints to OR multiple JSON objects ### 📊 Changes **5 files changed** (+49 additions, -16 deletions) <details> <summary>View changed files</summary> 📝 `docs/administration/permissions.md` (+9 -7) 📝 `docs/models/users/objectpermission.md` (+19 -3) 📝 `netbox/netbox/authentication.py` (+4 -1) 📝 `netbox/users/admin.py` (+9 -4) 📝 `netbox/utilities/querysets.py` (+8 -1) </details> ### 📄 Description ### Closes: #4946 Allows the user to specify a list of JSON objects to effect a logical OR among them when applying the permission constraints. Support for specifying a single object is maintained as well. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 22:24:33 +01:00
adam closed this issue 2025-12-29 22:24:33 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#12950