mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
[ticket/10961] Send HTTP 403 when applicable
PHPBB3-10961
This commit is contained in:
@@ -542,6 +542,7 @@ function close_report($report_id_list, $mode, $action, $pm = false)
|
||||
{
|
||||
if (!$auth->acl_getf_global('m_report'))
|
||||
{
|
||||
send_status_line(403, 'Forbidden');
|
||||
trigger_error('NOT_AUTHORISED');
|
||||
}
|
||||
}
|
||||
@@ -549,6 +550,7 @@ function close_report($report_id_list, $mode, $action, $pm = false)
|
||||
{
|
||||
if (!phpbb_check_ids($post_id_list, POSTS_TABLE, 'post_id', array('m_report')))
|
||||
{
|
||||
send_status_line(403, 'Forbidden');
|
||||
trigger_error('NOT_AUTHORISED');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user