Otwórz plik:admin/applications/forums/modules_public/moderate/moderate.php
Znajdź:
$post = $this->DB->buildAndFetch( array( 'select' => 'pid, author_id, post_date, new_topic', 'from' => 'posts', 'where' => "topic_id={$this->topic['tid']} and pid=" . $this->request['p'] ) );
Zamień na:
$post = $this->DB->buildAndFetch( array(
'select' => 'p.pid, p.author_id, p.post_date, p.new_topic',
'from' => array( 'posts' => 'p' ),
'where' => "p.topic_id={$this->topic['tid']} and p.pid=" . $this->request['p'],
'add_join' => array(
array(
'select' => 'm.member_group_id',
'from' => array( 'members' => 'm' ),
'where' => 'm.member_id=p.author_id',
'type' => 'left'
)
)
) );
if( $this->settings['admin_group'] == $post['member_group_id'] )
{
$this->_showError( 'no_permission' );
}
Zapisz i wyślij.