diff options
| author | Tristan Darricau <github@nicofuma.fr> | 2016-09-01 14:53:54 +0200 |
|---|---|---|
| committer | Tristan Darricau <github@nicofuma.fr> | 2016-09-01 14:53:54 +0200 |
| commit | a3dc829dab61ab2f548e9bc818c689a6f9f31287 (patch) | |
| tree | 22b13f4776b5111624efedcc73d1b3dc0877117a /phpBB/phpbb/message/topic_form.php | |
| parent | dff950162cd4d79d5e199e833e46a98d381397dc (diff) | |
| parent | 4b6c2c8cde0b87d32f8df8af87239580ddc340c4 (diff) | |
| download | forums-a3dc829dab61ab2f548e9bc818c689a6f9f31287.tar forums-a3dc829dab61ab2f548e9bc818c689a6f9f31287.tar.gz forums-a3dc829dab61ab2f548e9bc818c689a6f9f31287.tar.bz2 forums-a3dc829dab61ab2f548e9bc818c689a6f9f31287.tar.xz forums-a3dc829dab61ab2f548e9bc818c689a6f9f31287.zip | |
Merge pull request #4340 from Senky/ticket/10961
[ticket/10961] Send HTTP 403 when applicable
* Senky/ticket/10961:
[ticket/10961] Send HTTP 403 when applicable
Diffstat (limited to 'phpBB/phpbb/message/topic_form.php')
| -rw-r--r-- | phpBB/phpbb/message/topic_form.php | 8 |
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'; } |
