7 lines
		
	
	
	
		
			176 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
	
		
			176 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from rest_framework.permissions import BasePermission
 | |
| 
 | |
| class AllowWrite(BasePermission):
 | |
| 
 | |
| 	def has_permission(self, request, view):
 | |
| 		return request.user.has_perm('auth.org')
 | |
| 
 |