#NEWLINE# @ LoggedACL ( 'can_start_flow' ) #NEWLINE# def CheckIfCanStartFlow( self , token , flow_name , with_client_id = False ) : #NEWLINE# #INDENT# 'Check labels, ACL_ENFORCED attribute, and validate the token.' #NEWLINE# return ( ValidateToken ( token , [ flow_name ] ) and ( token . supervisor or CheckFlowAuthorizedLabels ( token , flow_name ) ) )