Enforce object permissions check when rendering forms in browseable API

This commit is contained in:
Tom Christie 2013-05-18 21:19:53 +01:00
parent 5ed3f59a2c
commit 4802177766

View File

@ -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