Skip to content

Commit 249fb47

Browse files
Clarify operators precendence in permissions documentation (#9875)
1 parent c8af56d commit 249fb47

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/api-guide/permissions.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ Provided they inherit from `rest_framework.permissions.BasePermission`, permissi
138138
return Response(content)
139139

140140
!!! note
141-
Composition of permissions supports `&` (and), `|` (or) and `~` (not) operators.
141+
Composition of permissions supports the `&` (and), `|` (or) and `~` (not) operators, and also allows the use of brackets `(` `)` to group expressions.
142+
143+
Operators follow the same precedence and associativity rules as standard logical operators (`~` highest, then `&`, then `|`).
144+
142145

143146
# API Reference
144147

0 commit comments

Comments
 (0)