Skip to content

Commit

Permalink
added_perm
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulMagos committed Nov 28, 2023
1 parent 73515cf commit 811d589
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions smartreport/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,10 @@
"DEFAULT_FILTER_BACKENDS": ["django_filters.rest_framework.DjangoFilterBackend"],
}

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


# Internationalization
Expand Down

0 comments on commit 811d589

Please sign in to comment.