[PR #13308] [MERGED] Closes #13038: Establish DEFAULT_PERMISSIONS config parameter #14152

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

📋 Pull Request Information

Original PR: https://github.com/netbox-community/netbox/pull/13308
Author: @jeremystretch
Created: 7/30/2023
Status: Merged
Merged: 7/30/2023
Merged by: @jeremystretch

Base: featureHead: 13038-default-permissions


📝 Commits (2)

  • c734889 Introduce the DEFAULT_PERMISSIONS config parameter
  • 52241fd Establish default permissions for user token management

📊 Changes

10 files changed (+99 additions, -108 deletions)

View changed files

📝 docs/administration/permissions.md (+6 -1)
📝 docs/configuration/security.md (+32 -0)
📝 netbox/netbox/authentication.py (+12 -1)
📝 netbox/netbox/configuration_testing.py (+2 -0)
📝 netbox/netbox/settings.py (+7 -0)
📝 netbox/users/account_urls.py (+4 -3)
📝 netbox/users/api/views.py (+1 -12)
📝 netbox/users/tables.py (+2 -9)
📝 netbox/users/tests/test_api.py (+22 -8)
📝 netbox/users/views.py (+11 -74)

📄 Description

Closes: #13038

  • Introduces the DEFAULT_PERMISSIONS config parameter
  • Establishes the following as default default permissions with a constraint of {'user': '$user'}:
    • users.view_token
    • users.add_token
    • users.change_token
    • users.delete_token
  • Rewrites the edit & delete views for UserToken to utilize generic views
  • Update Token API test suite to match the typical pattern

🔄 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/13308 **Author:** [@jeremystretch](https://github.com/jeremystretch) **Created:** 7/30/2023 **Status:** ✅ Merged **Merged:** 7/30/2023 **Merged by:** [@jeremystretch](https://github.com/jeremystretch) **Base:** `feature` ← **Head:** `13038-default-permissions` --- ### 📝 Commits (2) - [`c734889`](https://github.com/netbox-community/netbox/commit/c7348891956ff7bcf8b77be720aab9e90a2bce3b) Introduce the DEFAULT_PERMISSIONS config parameter - [`52241fd`](https://github.com/netbox-community/netbox/commit/52241fd81fd1505ef2c196f1f4e597154e4dc774) Establish default permissions for user token management ### 📊 Changes **10 files changed** (+99 additions, -108 deletions) <details> <summary>View changed files</summary> 📝 `docs/administration/permissions.md` (+6 -1) 📝 `docs/configuration/security.md` (+32 -0) 📝 `netbox/netbox/authentication.py` (+12 -1) 📝 `netbox/netbox/configuration_testing.py` (+2 -0) 📝 `netbox/netbox/settings.py` (+7 -0) 📝 `netbox/users/account_urls.py` (+4 -3) 📝 `netbox/users/api/views.py` (+1 -12) 📝 `netbox/users/tables.py` (+2 -9) 📝 `netbox/users/tests/test_api.py` (+22 -8) 📝 `netbox/users/views.py` (+11 -74) </details> ### 📄 Description ### Closes: #13038 - Introduces the `DEFAULT_PERMISSIONS` config parameter - Establishes the following as _default_ default permissions with a constraint of `{'user': '$user'}`: - `users.view_token` - `users.add_token` - `users.change_token` - `users.delete_token` - Rewrites the edit & delete views for UserToken to utilize generic views - Update Token API test suite to match the typical pattern --- <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:22:53 +01:00
adam closed this issue 2025-12-29 23:22:53 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#14152