From 3bf73634cab0c5f5e6f1f22aba62c24d9c133af1 Mon Sep 17 00:00:00 2001 From: Ludovic Arnaud Date: Thu, 3 Apr 2003 00:06:04 +0000 Subject: I knew that I forgot something: f_report now in use git-svn-id: file:///svn/phpbb/trunk@3783 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/report.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'phpBB/report.php') diff --git a/phpBB/report.php b/phpBB/report.php index 6aaa548297..937dfa78ff 100644 --- a/phpBB/report.php +++ b/phpBB/report.php @@ -55,14 +55,18 @@ $forum_id = $row['forum_id']; $topic_id = $row['topic_id']; // Checking permissions -if (!$auth->acl_gets('f_list', 'm_', 'a_', $forum_id)) +if (!$auth->acl_get('f_list', $forum_id)) { trigger_error('POST_NOT_EXIST'); } -if (!$auth->acl_gets('f_read', 'm_', 'a_', $forum_id)) +if (!$auth->acl_get('f_read', $forum_id)) { trigger_error('USER_CANNOT_READ'); } +if (!$auth->acl_get('f_report', $forum_id)) +{ + trigger_error('USER_CANNOT_REPORT'); +} // Has the report been cancelled? if (isset($_POST['cancel'])) -- cgit v1.2.1