Skip to main content

load_layered_permissions

Function load_layered_permissions 

Source
pub fn load_layered_permissions(workspace: &Path) -> LayeredPermissionsConfig
Expand description

Load layered permissions from user config and project config.

Resolution order (highest priority first):

  1. Session layer (empty, filled at runtime via Goal 196)
  2. Project layer (.recursive/config.toml in the workspace)
  3. User layer (~/.recursive/config.toml)

The Session layer is always present (even if empty) so that runtime rule updates can be written to it.