mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
I knew that I forgot something: f_report now in use
git-svn-id: file:///svn/phpbb/trunk@3783 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
b1848bf34e
commit
3bf73634ca
2 changed files with 7 additions and 2 deletions
|
@ -382,6 +382,7 @@ $lang = array(
|
||||||
'USER_CANNOT_QUOTE' => 'You cannot quote posts in this forum',
|
'USER_CANNOT_QUOTE' => 'You cannot quote posts in this forum',
|
||||||
'USER_CANNOT_EDIT' => 'You cannot edit 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_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_REPLIED' => 'Sorry but you may not delete posts that have been replied to',
|
||||||
'CANNOT_DELETE_POLL' => 'Sorry but you cannot delete an active poll',
|
'CANNOT_DELETE_POLL' => 'Sorry but you cannot delete an active poll',
|
||||||
'EDIT_OWN_POSTS' => 'Sorry but you can only edit your own posts',
|
'EDIT_OWN_POSTS' => 'Sorry but you can only edit your own posts',
|
||||||
|
|
|
@ -55,14 +55,18 @@ $forum_id = $row['forum_id'];
|
||||||
$topic_id = $row['topic_id'];
|
$topic_id = $row['topic_id'];
|
||||||
|
|
||||||
// Checking permissions
|
// 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');
|
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');
|
trigger_error('USER_CANNOT_READ');
|
||||||
}
|
}
|
||||||
|
if (!$auth->acl_get('f_report', $forum_id))
|
||||||
|
{
|
||||||
|
trigger_error('USER_CANNOT_REPORT');
|
||||||
|
}
|
||||||
|
|
||||||
// Has the report been cancelled?
|
// Has the report been cancelled?
|
||||||
if (isset($_POST['cancel']))
|
if (isset($_POST['cancel']))
|
||||||
|
|
Loading…
Add table
Reference in a new issue