Beispiel #1
0
 def __ror__(cls, other):
     return OperandHolder(OR, other, cls)
Beispiel #2
0
class ClientAuthApi(APIAuthenticateView):
	authentication_classes 		= 	(TokenAuthentication, BasicAuthentication,)
	permission_classes 			= 	[OperandHolder(OR, OperandHolder(OR, IsAuthenticatedClient, IsAuthenticatedStaff), IsAuthenticatedAdmin),]
Beispiel #3
0
 def __rand__(cls, other):
     return OperandHolder(AND, other, cls)
Beispiel #4
0
class StaffBasicAuthApi(APIAuthenticateView):
	authentication_classes 		= 	(BasicAuthentication,)
	permission_classes 			= 	[OperandHolder(OR, IsAuthenticatedStaff, IsAuthenticatedAdmin),]