Commit 134b058f authored by Stauros Kroustouris's avatar Stauros Kroustouris

add user rights in rest api

parent c4b738dc
......@@ -334,3 +334,10 @@ PEER_RANGE_MANAGED_TABLE = True
PEER_TECHC_MANAGED_TABLE = True
REST_FRAMEWORK = {
# Use Django's standard `django.contrib.auth` permissions,
# or allow read-only access for unauthenticated users.
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
],
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment