Permission constraint doesn't work on sync
action
#15582
Labels
severity: medium
Results in substantial degraded or broken functionality for specfic workflows
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Deployment Type
Self-hosted
NetBox Version
v3.7.3
Python Version
3.11
Steps to Reproduce
Core > Data Source
. Allowadd
,view
, andsync
actions. Add constraint:{"id": 4}
.curl -X POST -H "Authorization: Token $TOKEN" -H "Accept: application/json" http://localhost:8001/api/core/data-sources/7/sync/
Additional Context
I'd like to sync this git data source it as a post-commit hook when I make changes to the scripts. So I want to restrict this user permission to only one data source.
The constraint works properly on the
view
action. If I GET/api/core/data-sources/7/
I get a response:{"detail":"Not found."}
.Expected Behavior
I should get a permission denied error.
Observed Behavior
It works.
The text was updated successfully, but these errors were encountered: