# clanbite_forums_user_can_view_category

Whether a user may view a role-restricted category (after role list check).

```php
apply_filters( 'clanbite_forums_user_can_view_category', bool $can, int $viewer_id, object $category, string $visibility, list<string> $roles )
```

## Parameters

- `$can` (bool) Default false.
- `$viewer_id` (int) User ID.
- `$category` (object) Category row.
- `$visibility` (string) Normalized visibility (`roles`).
- `$roles` (list<string>) Allowed role slugs from storage.
