Skip to content

Ticket 1 — Configurable protection: mutate blocked; show & download independent #2

Description

@jbagsik

What to build

An admin can mark media as write-protected so replace, image-edit, and delete stay refused, while show/preview and download are configured independently (allow show+download, show-only, or neither). Today’s behaviour that treats protected items as non-downloadable is fixed for the “allow download” case. Filament UI and policy match.

Acceptance criteria

  • Protected media cannot be updated, replaced, image-edited, or deleted (single and bulk).
  • Show/preview and download are separately configurable; at least the combinations allow/allow, allow/deny, deny/deny are supported and documented.
  • When download is allowed, protected media is downloadable in admin; when denied, download is refused.
  • When show is denied, inline preview is not offered.
  • Pest tests cover the protection/access matrix at the policy/UI behaviour seam (not Spatie internals).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions