spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

claude-code / mods / sec-default / hooks / policy / is-person-writable.ts
GitHub Actions (publish-mods)chore: Update mods/ 3deb873 · 13 days ago History
13 lines · 461 BRaw
1import type { Settings } from 'claude-code'
2
3/**
4 * Whether the policy read is one the person could have written: the host
5 * marks it where no administrator's document composes it.
6 *
7 * Such a policy may hold; no grant is taken from it.
8 *
9 * @param policy the managed settings, as `$.settings.read` answers them
10 * @returns true for a policy so marked
11 */
12export const isPersonWritable = (policy: Settings): boolean =>
13 policy.personWritablePolicy === true