Access to category and Forum

Code the restricting query to access to the category and forum, etc.