Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
MaksymProtsak committed Nov 14, 2024
1 parent 3886edd commit 12fcaf6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions user/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ class IsAdminOrIfAuthenticatedReadOnly(BasePermission):
def has_permission(self, request, view):
return bool(
(
request.method in SAFE_METHODS
and request.user
and request.user.is_authenticated
request.method in SAFE_METHODS
and request.user
and request.user.is_authenticated
)
or (
request.user and request.user.is_staff
request.user and request.user.is_staff
)
)

0 comments on commit 12fcaf6

Please sign in to comment.