projects
/
flowspy
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c4b738d
)
add user rights in rest api
author
Stauros Kroustouris
<staurosk@noc.grnet.gr>
Fri, 9 Jan 2015 08:10:19 +0000
(10:10 +0200)
committer
Stauros Kroustouris
<staurosk@noc.grnet.gr>
Fri, 9 Jan 2015 08:10:19 +0000
(10:10 +0200)
flowspy/settings.py.dist
patch
|
blob
|
history
diff --git
a/flowspy/settings.py.dist
b/flowspy/settings.py.dist
index
c96e144
..
25e9c1f
100644
(file)
--- a/
flowspy/settings.py.dist
+++ b/
flowspy/settings.py.dist
@@
-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'
+ ],
+}