drupflare/worker - v1.0.4
    Preparing search index...

    Function rolesOf

    • Reads the role set out of a PHP reply, sorted, or an empty list.

      A shell response must carry its roles: the edge plan compiles from three agreeing samples of x-cfw-roles keyed by cookie, so one ASSEMBLED path without them made the whole session read skip:roles-unknown and never compile a plan. Anything not a list of strings yields nothing, since a partial role set would compile a plan for the wrong audience.

      Parameters

      • reply: Record<string, unknown> | null | undefined

      Returns string[]