Skip to content

Commit

Permalink
Changed api permissions to be authenticated instead of admin. Only in…
Browse files Browse the repository at this point in the history
…ternal authenticated users can access downtimedb anyway since it is not externally accessible on the web
  • Loading branch information
Jon committed Jul 26, 2024
1 parent d75a5c6 commit b6df5f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion downtime/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
'ocs_authentication.backends.OCSTokenAuthentication', # Allows authentication against Oauth Servers api_token
'rest_framework.authentication.SessionAuthentication',
),
'DEFAULT_PERMISSION_CLASSES': ('ocs_authentication.permissions.IsAdminOrReadOnly',),
'DEFAULT_PERMISSION_CLASSES': ('rest_framework.permissions.IsAuthenticatedOrReadOnly',),
'DEFAULT_FILTER_BACKENDS': ('django_filters.rest_framework.DjangoFilterBackend',),
'DEFAULT_VERSIONING_CLASS': 'rest_framework.versioning.NamespaceVersioning',
'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagination',
Expand Down

0 comments on commit b6df5f4

Please sign in to comment.