Skip to content

Content-Types only fetchable as SuperUser - hinders usage of Object-Changes #8499

@moonrail

Description

@moonrail

NetBox version

v3.1.6

Python version

3.9

Steps to Reproduce

  1. Create/Have a User
  2. Do not grant the User SuperUser-Permissions via according flag in Admin-Backend
  3. Grant the User permissions on everything (just for this test)
  4. Log in as the User
    5.1 Try to access /extras/changelog/
    5.2 Try to access /api/extras/content-types/

Expected Behavior

5.1 should show changes without errors, as the User has Permissions on Extras > object change
5.2 should return all Content-Types, a User can use (used e.g. by the Frontend to provide Filters on Changelog)

Observed Behavior

5.1 raises an error, that content-types cannot be fetched. Object-Changes are visible, but Content-Type-Filtering is not possible
5.2 raises an HTTP 403

The only workaround is, to grant the User SuperUser-Permissions via Flag in Admin-Backend.
Obviously this workaround should not be used.

Metadata

Metadata

Assignees

Labels

status: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions