If you remove the following code from
posting.php
:
Code: Select all
// Is the user able to read within this forum?
if (!$auth->acl_get('f_read', $forum_id))
{
if ($user->data['user_id'] != ANONYMOUS)
{
trigger_error('USER_CANNOT_READ');
}
login_box('', $user->lang['LOGIN_EXPLAIN_POST']);
}
You can then set permissions for a forum where "see forum" and "read forum" are set to NEVER, but "start new topics" and "reply to topics" are set to YES, and those permissions will work.
It certainly appears as though this check was considered a feature. I've always considered it a bug because it reduces the capabilities of the permissions system.
(And FWIW, this change makes it simple to add a "Contact Us" link that can be used by members
and guests to send private comments to the board administrators.)