Skip to content

Commit

Permalink
auth reqr only on prod
Browse files Browse the repository at this point in the history
  • Loading branch information
iannisimo committed Nov 10, 2023
1 parent 53199d2 commit 2b06fa1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions smartreport/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@
"rest_framework.authentication.BasicAuthentication",
"rest_framework.authentication.SessionAuthentication",
),
# UNCOMMENT THIS TO ENABLE PERMISSIONS CHECKS
#
# 'DEFAULT_PERMISSION_CLASSES': [
# 'smartreport_app.permissions.FullObjectPermission',
# ],
'DEFAULT_FILTER_BACKENDS': ['django_filters.rest_framework.DjangoFilterBackend']
}

if (os.environ.get("DEBUG").lower() == "false"):
REST_FRAMEWORK["DEFAULT_PERMISSION_CLASSES"] = (
'smartreport_app.permissions.FullObjectPermission',
)


# Internationalization
# https://docs.djangoproject.com/en/4.2/topics/i18n/
Expand Down

0 comments on commit 2b06fa1

Please sign in to comment.