---
title: PermissionDeclaration
description: >-
  A permission a plugin checks with `can()` from `@svartz/auth/server`.
  `defaults` are the site-wide grants to the built-in actors (`guest` is
  everyone, `signed-in` everyone with an account) until a stored grant says
  otherwise.
updated_at: '2026-11-20T00:40:56+01:00'
created_at: '2026-03-07T03:07:51+01:00'
symbol:
  kind: interface
  name: PermissionDeclaration
  signatures:
    - interface PermissionDeclaration
  members:
    - name: slug
      kind: property
      signature: >-
        readonly slug: `${string}:${string}:read` | `${string}:${string}:write`
        | `${string}:${string}:delete`
    - name: name
      kind: property
      signature: 'readonly name: string'
      description: 'Short, for the dashboard: "Delete any comment".'
    - name: description
      kind: property
      signature: 'readonly description: string'
      description: One sentence on what holding it allows.
    - name: defaults
      kind: property
      signature: 'readonly defaults?: { … }'
    - name: defaults.guest
      kind: property
      signature: 'readonly guest?: "allow" | "deny"'
    - name: defaults.signed-in
      kind: property
      signature: 'readonly "signed-in"?: "allow" | "deny"'
    - name: administrative
      kind: property
      signature: 'readonly administrative?: boolean'
      description: >-
        Set for a permission that administers the site rather than a page's
        content: seeing or changing who may do what, moderating people. Owning a
        page, as an account owns its user page or a group's owners what the
        group is linked to, never gives it; only the `admin` role or a grant
        does.
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/core/src/plugin/types.ts#L100
---

# PermissionDeclaration
