phpBB

Code Changes

File: report.php

  Unmodified   Added   Modified   Removed
Line 98Line 98

// Check required permissions
$acl_check_ary = array('f_list' => 'POST_NOT_EXIST', 'f_read' => 'USER_CANNOT_READ', 'f_report' => 'USER_CANNOT_REPORT');


// Check required permissions
$acl_check_ary = array('f_list' => 'POST_NOT_EXIST', 'f_read' => 'USER_CANNOT_READ', 'f_report' => 'USER_CANNOT_REPORT');

 

/**
* This event allows you to do extra auth checks and verify if the user
* has the required permissions
*
* @event core.report_post_auth
* @var array forum_data All data available from the forums table on this post's forum
* @var array report_data All data available from the topics and the posts tables on this post (and its topic)
* @var array acl_check_ary An array with the ACL to be tested. The evaluation is made in the same order as the array is sorted
* The key is the ACL name and the value is the language key for the error message.
* @since 3.1.3-RC1
*/
$vars = array(
'forum_data',
'report_data',
'acl_check_ary',
);
extract($phpbb_dispatcher->trigger_event('core.report_post_auth', compact($vars)));


foreach ($acl_check_ary as $acl => $error)
{


foreach ($acl_check_ary as $acl => $error)
{