aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/message/topic_form.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/phpbb/message/topic_form.php')
-rw-r--r--phpBB/phpbb/message/topic_form.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/phpbb/message/topic_form.php b/phpBB/phpbb/message/topic_form.php
index 174643bb81..dbb883c142 100644
--- a/phpBB/phpbb/message/topic_form.php
+++ b/phpBB/phpbb/message/topic_form.php
@@ -71,6 +71,14 @@ class topic_form extends form
if (!$this->auth->acl_get('f_read', $this->topic_row['forum_id']))
{
+ if ($this->user->data['user_id'] != ANONYMOUS)
+ {
+ send_status_line(403, 'Forbidden');
+ }
+ else
+ {
+ send_status_line(401, 'Unauthorized');
+ }
return 'SORRY_AUTH_READ';
}