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)
Flush the file to the database.
dataset/ETHPy150Open google/grr/grr/lib/aff4_objects/user_managers.py/CheckFlowCanBeStartedOnClient--crossover with--dataset/ETHPy150Open blynch/CloudMemeBackend/gridfs/grid_file.py/GridIn.__flush