mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-11 04:07:39 +03:00
Enforce object permissions check when rendering forms in browseable API
This commit is contained in:
parent
5ed3f59a2c
commit
4802177766
|
@ -349,6 +349,7 @@ class BrowsableAPIRenderer(BaseRenderer):
|
|||
|
||||
try:
|
||||
view.check_permissions(request)
|
||||
view.check_object_permissions(request, obj)
|
||||
except exceptions.APIException:
|
||||
return False # Doesn't have permissions
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue
Block a user