def CheckFlowAuthorizedLabels(token, flow_name):
  flow_cls = flow.GRRFlow.GetPlugin(flow_name)

  if flow_cls.AUTHORIZED_LABELS:
    return CheckUserForLabels(token.username, flow_cls.AUTHORIZED_LABELS,
                              token=token)
  else:
    return True
Build an rdata object from text format.
dataset/ETHPy150Open google/grr/grr/lib/aff4_objects/user_managers.py/CheckFlowAuthorizedLabels--crossover with--dataset/ETHPy150Open catap/namebench/nb_third_party/dns/rdata.py/Rdata.from_text