Skip to content

basalt / permissions/src / LEGACY_GLOBAL_SCOPE

Variable: LEGACY_GLOBAL_SCOPE ​

> const LEGACY_GLOBAL_SCOPE: "global" = 'global'

Defined in: permissions/src/index.ts:123

The historic value of GLOBAL_SCOPE (≤ 1.4). Rows stored under it are NOT read as global unless the Gate is built with readLegacyGlobalScope: true — migrate them (UPDATE … SET scope = '@global' WHERE scope = 'global') instead. A tenant whose id is 'global' is always refused.

Released under the MIT License.