Skip to content

Commit 5a284a0

Browse files
committed
Add warning to docs on permission check with related urls
1 parent 3833271 commit 5a284a0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/usage.md

+8
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,14 @@ class OrderSerializer(serializers.HyperlinkedModelSerializer):
703703
}
704704
```
705705

706+
<div class="warning">
707+
<strong>Note:</strong>
708+
Even though with related urls relations are served on different urls there are still served
709+
by the same view. This means that the object permission check is performed on the parent object.
710+
In other words when the parent object is accessible by the user the related object will be as well.
711+
</div>
712+
713+
706714
### RelationshipView
707715
`rest_framework_json_api.views.RelationshipView` is used to build
708716
relationship views (see the

0 commit comments

Comments
 (0)