#NEWLINE# def allowed( self , request , project ) : #NEWLINE# #INDENT# return next ( ( True for proj in request . user . authorized_tenants if ( ( proj . id == request . id ) and ( project . id != request . user . project_id ) and project . enabled ) ) , False )