Skip to content

Commit 277c84f

Browse files
Change path to default_account definition
This was moved in #3599, but this instance was forgotten to be changed Which lead an error when accessing the API when unauthenticated
1 parent 7e777b9 commit 277c84f

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

changelog.d/3650.fixed.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed accessing API root as unauthenticated user

python/nav/django/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@
245245
REST_FRAMEWORK = {
246246
'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',),
247247
'DEFAULT_PAGINATION_CLASS': 'nav.web.api.v1.NavPageNumberPagination',
248-
'UNAUTHENTICATED_USER': 'nav.django.utils.default_account',
248+
'UNAUTHENTICATED_USER': 'nav.web.auth.utils.default_account',
249249
}
250250

251251
# Classes that implement a search engine for the web navbar

0 commit comments

Comments
 (0)