Skip to content

Commit

Permalink
Fix 500 error when accessing /pulp/api/v3/ as unauthed user
Browse files Browse the repository at this point in the history
  • Loading branch information
David Davis authored and daviddavis committed Feb 15, 2019
1 parent 5d13b4f commit fba8c39
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pulpcore/app/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ def __repr__(self):
name='schema-redoc')
)

schema_view = get_schema_view(title='Pulp API')
schema_view = get_schema_view(
title='Pulp API',
permission_classes=[permissions.AllowAny],
)

urlpatterns.append(url(r'^{api_root}$'.format(api_root=API_ROOT), schema_view))

Expand Down

0 comments on commit fba8c39

Please sign in to comment.