Comment code
This commit is contained in:
parent
091c427707
commit
24ea4c0a52
8 changed files with 57 additions and 21 deletions
|
|
@ -7,6 +7,11 @@ SAFE_METHODS = ('HEAD', 'OPTIONS', )
|
|||
|
||||
|
||||
class StrongDjangoObjectPermissions(DjangoObjectPermissions):
|
||||
"""
|
||||
Default DjangoObjectPermissions grant view permission to all.
|
||||
This is a simple patch of this class that controls view access.
|
||||
"""
|
||||
|
||||
perms_map = {
|
||||
'GET': ['%(app_label)s.view_%(model_name)s'],
|
||||
'OPTIONS': [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue