Add support for read/write permissions.

This commit is contained in:
Tom Hacohen committed 2020-12-28 16:42:39 +02:00
1 parent 6c05a7898a
commit b081d0129f
5 files changed
+79 -43

No files matched your search

-5
View File
@@ -166,11 +166,6 @@ if any(os.path.isfile(x) for x in config_locations):
if "database" in config:
DATABASES = {"default": {x.upper(): y for x, y in config.items("database")}}
ETEBASE_API_PERMISSIONS = ("rest_framework.permissions.IsAuthenticated",)
ETEBASE_API_AUTHENTICATORS = (
"django_etebase.token_auth.authentication.TokenAuthentication",
"rest_framework.authentication.SessionAuthentication",
)
ETEBASE_CREATE_USER_FUNC = "django_etebase.utils.create_user_blocked"
# Efficient file streaming (for large files)