def CheckFlowCanBeStartedOnClient(flow_name):
 flow_cls = flow.GRRFlow.GetPlugin(flow_name)
 if ((not flow_cls.ACL_ENFORCED) or flow_cls.category):
  return True
 else:
  raise access_control.UnauthorizedAccess(("Flow %s can't be started on a client by non-suid users." % flow_name))

def CheckFlowCanBeStartedOnClient ( flow_name ) : flow_cls = flow . GRRFlow . GetPlugin ( flow_name ) if ( ( not flow_cls . ACL_ENFORCED ) or flow_cls . category ) : return True else : raise access_control . UnauthorizedAccess ( ( "Flow %s can't be started on a client by non-suid users." % flow_name ) )
checks if flow can be started on a particular client .