Private
Public Access
1
0

sorted permissions for workouts-list

This commit is contained in:
Sander Roosendaal
2016-12-22 15:39:57 +01:00
parent 24de5c681d
commit 56fc3a52d3
6 changed files with 46 additions and 20 deletions

View File

@@ -273,6 +273,7 @@ REST_FRAMEWORK = {
# or allow read-only access for unauthenticated users.
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.IsAuthenticated'
# 'rest_framework.permissions.DjangoModelPermissions'
],
'DEFAULT_AUTHENTICATION_CLASSES': (
'rest_framework.authentication.BasicAuthentication',
@@ -286,6 +287,11 @@ SWAGGER_SETTINGS = {
'SECURITY_DEFINITION': {
'basic': {
'type':'basic'
},
'oauth2': {
'type':'oauth2',
'authorizationUrl':'/rowers/o/authorize',
'flow': 'implicit',
}
},
'SHOW_REQUEST_HEADERS': True,