-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application
Description
NetBox version
v3.0.9
Python version
3.8
Steps to Reproduce
- Log into NetBox as a user without permission to view user or group objects
- Navigate to the GraphQL API view (
/graphql/) - Enter the following query:
query {
user_list
{
username
password
}
}
Expected Behavior
The query should return an empty list due to insufficient permissions.
Observed Behavior
The results are not filtered. This is due to a missing call to restrict() on the queryset for these models. (These models are provided by the Django framework, so they're handled a bit differently than native NetBox models.)
Metadata
Metadata
Assignees
Labels
status: acceptedThis issue has been accepted for implementationThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the applicationA confirmed report of unexpected behavior in the application