aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-04-03 00:06:04 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2003-04-03 00:06:04 +0000
commit3bf73634cab0c5f5e6f1f22aba62c24d9c133af1 (patch)
tree0a2621d4865082f0cbbfb5c6d0eca1217eca2302
parentb1848bf34e1573593e694a118dee1960c3572ea7 (diff)
downloadforums-3bf73634cab0c5f5e6f1f22aba62c24d9c133af1.tar
forums-3bf73634cab0c5f5e6f1f22aba62c24d9c133af1.tar.gz
forums-3bf73634cab0c5f5e6f1f22aba62c24d9c133af1.tar.bz2
forums-3bf73634cab0c5f5e6f1f22aba62c24d9c133af1.tar.xz
forums-3bf73634cab0c5f5e6f1f22aba62c24d9c133af1.zip
I knew that I forgot something: f_report now in use
git-svn-id: file:///svn/phpbb/trunk@3783 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/language/en/lang_main.php1
-rw-r--r--phpBB/report.php8
2 files changed, 7 insertions, 2 deletions
diff --git a/phpBB/language/en/lang_main.php b/phpBB/language/en/lang_main.php
index d5b10df1aa..6bca4758a9 100644
--- a/phpBB/language/en/lang_main.php
+++ b/phpBB/language/en/lang_main.php
@@ -382,6 +382,7 @@ $lang = array(
'USER_CANNOT_QUOTE' => 'You cannot quote posts in this forum',
'USER_CANNOT_EDIT' => 'You cannot edit posts in this forum',
'USER_CANNOT_DELETE' => 'You cannot delete posts in this forum',
+ 'USER_CANNOT_REPORT' => 'You cannot report posts in this forum',
'CANNOT_DELETE_REPLIED' => 'Sorry but you may not delete posts that have been replied to',
'CANNOT_DELETE_POLL' => 'Sorry but you cannot delete an active poll',
'EDIT_OWN_POSTS' => 'Sorry but you can only edit your own posts',
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']))