# Visibility::user_can_reply_in_topic()

Whether the user may post a reply in this topic.

Site forums managers and assigned forum moderators may always reply. Topic policy `self::VIS_AUTHOR_MODS`
limits replies to the topic author and staff. Private denies other users (extend via `'clanbite_forums_user_can_reply'` at the REST layer).

```php
user_can_reply_in_topic( int $viewer_id, object $topic, object $forum ): bool
```

## Parameters

- `$viewer_id` (int) WordPress user ID (0 = guest).
- `$topic` (object) Topic row.
- `$forum` (object) Forum row for the topic.

## Return

`bool`
