|
@@ -237,12 +237,12 @@ function template_reported_posts()
|
|
|
<li><a href="', $scripturl, '?action=moderate;area=reports', $context['view_closed'] ? ';sa=closed' : '', ';close=', (int) !$report['closed'], ';rid=', $report['id'], ';start=', $context['start'], ';', $context['session_var'], '=', $context['session_id'], '">', $close_button, '</a></li>';
|
|
|
|
|
|
|
|
|
- if (allowedTo('remove_any', $report['topic']['id_board']))
|
|
|
+ if (!$report['closed'] && allowedTo('remove_any', $report['topic']['id_board']))
|
|
|
echo '
|
|
|
<li><a href="', $scripturl, '?action=deletemsg;topic=', $report['topic']['id'] ,'.0;msg=', $report['topic']['id_msg'] ,';', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'' , $txt['mc_reportedp_delete_confirm'] , '\');">', $delete_button, '</a></li>';
|
|
|
|
|
|
|
|
|
- if (allowedTo('manage_bans', $report['topic']['id_board']))
|
|
|
+ if (!$report['closed'] && allowedTo('manage_bans', $report['topic']['id_board']))
|
|
|
echo '
|
|
|
<li><a href="', $scripturl, '?action=admin;area=ban;sa=add;u=', $report['author']['id'] ,';', $context['session_var'], '=', $context['session_id'], '">', $ban_button, '</a></li>';
|
|
|
|