function moreedit_posted_item($item)
{
if (osc_get_preference('moderate_all', 'moreedit') == '1') {
$error = Session::newInstance()->_get('moreedit_fm_info');
if($error=='') {
Session::newInstance()->_set('moreedit_fm_info', __('Your ad needs to be approved by the administrator, it could take a while until it appear on the website', 'moreedit') );
}
Item::newInstance()->update(array('b_enabled' => 0), array('pk_i_id' => $item['pk_i_id']));
}
}
Меняете на такой вариант:
function moreedit_posted_item($item)
{
if (!osc_is_web_user_logged_in() && osc_get_preference('moderate_all', 'moreedit') == '1') {
$error = Session::newInstance()->_get('moreedit_fm_info');
if($error=='') {
Session::newInstance()->_set('moreedit_fm_info', __('Your ad needs to be approved by the administrator, it could take a while until it appear on the website', 'moreedit') );
}
Item::newInstance()->update(array('b_enabled' => 0), array('pk_i_id' => $item['pk_i_id']));
}
}
И всё.