Skip to content

Content-Types only fetchable as logged in user #13237

@fabi125

Description

@fabi125

NetBox version

v3.5.6

Python version

3.11

Steps to Reproduce

Config settings:

LOGIN_REQUIRED = False
EXEMPT_VIEW_PERMISSIONS = ["*"]

Try to access /api/extras/content-types/

Expected Behavior

List of content types is returned.

Observed Behavior

{"detail":"Authentication credentials were not provided."}

This view only uses IsAuthenticated while other views use IsAuthenticatedOrLoginNotRequired, which I believe is what should be used for ContentTypeViewSet as well.

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