sorted permissions for workouts-list
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user