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