mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/10961] Send HTTP 403 when applicable
PHPBB3-10961
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user