mirror of
https://github.com/encode/django-rest-framework.git
synced 2026-02-03 14:06:18 +03:00
Clarify operators precendence in permissions documentation (#9875)
This commit is contained in:
parent
c8af56d260
commit
249fb47842
|
|
@ -138,7 +138,10 @@ Provided they inherit from `rest_framework.permissions.BasePermission`, permissi
|
|||
return Response(content)
|
||||
|
||||
!!! note
|
||||
Composition of permissions supports `&` (and), `|` (or) and `~` (not) operators.
|
||||
Composition of permissions supports the `&` (and), `|` (or) and `~` (not) operators, and also allows the use of brackets `(` `)` to group expressions.
|
||||
|
||||
Operators follow the same precedence and associativity rules as standard logical operators (`~` highest, then `&`, then `|`).
|
||||
|
||||
|
||||
# API Reference
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user