Skip to content

Commit db16bb3

Browse files
authored
Fix typo at OR constructor
OR members should be the constructors arguments
1 parent 74855ff commit db16bb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rest_framework/permissions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def has_object_permission(self, request, view, obj):
8787

8888
class OR(BasePermission):
8989
def __init__(self, *args):
90-
self.permissions = op1
90+
self.permissions = args
9191

9292
def has_permission(self, request, view):
9393
for permission in self.permissions:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy