# Events::viewer_can_see_event()

Check whether a viewer is allowed to see an event at all.

Default behavior:
- `match`: defer to Matches extension visibility checks when available.
- otherwise: allow.

Extensions should filter this for their own event types.

```php
viewer_can_see_event( string $event_type, int $event_id, int $viewer_id ): bool
```

## Parameters

- `$event_type` (string) Event type slug (e.g. `match`, `group_event`).
- `$event_id` (int) Event object ID.
- `$viewer_id` (int) Viewer user ID (0 for anon).

## Return

`bool`
