[PR #11860] [CLOSED] Fixes #11812: Use object based permissions to render the right actions on tables #13859

Closed
opened 2025-12-29 23:21:12 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/11860
Author: @rmanyari
Created: 2/28/2023
Status: Closed

Base: developHead: GH-11812


📝 Commits (1)

  • b195918 Fixes #11812: Leverage object based permissions to render the right action buttons on tables

📊 Changes

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

View changed files

📝 netbox/netbox/tables/columns.py (+1 -1)

📄 Description

Fixes: #11812

  • Use object based permissions to render the right actions on table rows. In particular when a user has mixed permissions that involve object constraints.

See #11812 for more background. After the fix, we can see that the edit button no longer shows on rows the user isn't allowed to change.

image

🔄 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/11860 **Author:** [@rmanyari](https://github.com/rmanyari) **Created:** 2/28/2023 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `GH-11812` --- ### 📝 Commits (1) - [`b195918`](https://github.com/netbox-community/netbox/commit/b1959184aa13bfa90d486c5b19bd97750feac52c) Fixes #11812: Leverage object based permissions to render the right action buttons on tables ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `netbox/netbox/tables/columns.py` (+1 -1) </details> ### 📄 Description ### Fixes: #11812 * Use object based permissions to render the right actions on table rows. In particular when a user has mixed permissions that involve object constraints. See #11812 for more background. After the fix, we can see that the edit button no longer shows on rows the user isn't allowed to change. <img width="1174" alt="image" src="https://user-images.githubusercontent.com/1471029/221996641-e211677b-0c14-42d1-bb2f-802a9873100e.png"> --- <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 23:21:12 +01:00
adam closed this issue 2025-12-29 23:21:12 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#13859