mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-06-30 02:13:29 +03:00
Fix typo at OR constructor
OR members should be the constructors arguments
This commit is contained in:
parent
74855ff383
commit
db16bb3799
|
@ -87,7 +87,7 @@ class AND(BasePermission):
|
||||||
|
|
||||||
class OR(BasePermission):
|
class OR(BasePermission):
|
||||||
def __init__(self, *args):
|
def __init__(self, *args):
|
||||||
self.permissions = op1
|
self.permissions = args
|
||||||
|
|
||||||
def has_permission(self, request, view):
|
def has_permission(self, request, view):
|
||||||
for permission in self.permissions:
|
for permission in self.permissions:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user