mirror of
				https://github.com/encode/django-rest-framework.git
				synced 2025-11-04 09:57:55 +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):
 | 
			
		||||
    def __init__(self, *args):
 | 
			
		||||
        self.permissions = op1
 | 
			
		||||
        self.permissions = args
 | 
			
		||||
 | 
			
		||||
    def has_permission(self, request, view):
 | 
			
		||||
        for permission in self.permissions:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user