[PR #20830] [MERGED] fix: check permission constraints when running script by API #16058

Closed
opened 2025-12-30 00:25:34 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/20830
Author: @llamafilm
Created: 11/19/2025
Status: Merged
Merged: 11/20/2025
Merged by: @arthanson

Base: mainHead: 20740-permissions


📝 Commits (1)

  • e91020b check object-level permission constraints

📊 Changes

1 file changed (+4 additions, -2 deletions)

View changed files

📝 netbox/extras/api/views.py (+4 -2)

📄 Description

Fixes: #20740

Now the REST API enforces the same permission constraints as the webpage, when running a custom script.


🔄 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/20830 **Author:** [@llamafilm](https://github.com/llamafilm) **Created:** 11/19/2025 **Status:** ✅ Merged **Merged:** 11/20/2025 **Merged by:** [@arthanson](https://github.com/arthanson) **Base:** `main` ← **Head:** `20740-permissions` --- ### 📝 Commits (1) - [`e91020b`](https://github.com/netbox-community/netbox/commit/e91020b0cb7c6768296df760218612a2b2f6b67d) check object-level permission constraints ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `netbox/extras/api/views.py` (+4 -2) </details> ### 📄 Description ### Fixes: #20740 Now the REST API enforces the same permission constraints as the webpage, when running a custom script. --- <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-30 00:25:34 +01:00
adam closed this issue 2025-12-30 00:25:34 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#16058