Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 598bccae

Přidáno uživatelem Ondřej Fibich před téměř 9 roky(ů)

refs #1030: Member can get list of all system users from form for inner mail sending

Zobrazit rozdíly:

application/controllers/js.php
// load users for autocomplete
$um = new User_Model();
$user_list = $um
->select_list('login', "CONCAT(surname, ' ', COALESCE(name,''), ' - ', login)", 'surname');
$result = array();
foreach ($user_list AS $login => $user)
if ($this->acl_check_view('Users_Controller', 'users'))
{
$result[] = array(
'login' => $login,
'value' => $user
);
$user_list = $um->select_list('login',
"CONCAT(surname, ' ', COALESCE(name,''), ' - ', login)",
'surname');
foreach ($user_list AS $login => $user)
{
$result[] = array(
'login' => $login,
'value' => $user
);
}
}
$this->views['mail_write_message'] = View::factory('js/mail_write_message');

Také k dispozici: Unified diff