Revize 1992
Přidáno uživatelem Michal Kliment před více než 11 roky(ů)
freenetis/branches/1.1/application/controllers/work_reports.php | ||
---|---|---|
|
||
if (!$this->acl_check_new('Work_reports_Controller', 'work_report', $user->member_id))
|
||
Controller::error(ACCESS);
|
||
|
||
// association connot create work report
|
||
if ($user->member_id == Member_Model::ASSOCIATION)
|
||
Controller::error(RECORD);
|
||
|
||
$selected = $user->id;
|
||
$arr_users[$user->id] = $user->get_full_name() . ' - ' . $user->login;
|
||
... | ... | |
)";
|
||
|
||
$arr_users = ORM::factory('user')
|
||
->where('member_id <>', Member_Model::ASSOCIATION)
|
||
->select_list('id', $concat);
|
||
|
||
$member_id = NULL;
|
freenetis/branches/1.1/application/controllers/works.php | ||
---|---|---|
if (!$this->acl_check_new('Works_Controller', 'work', $user->member_id))
|
||
Controller::error(ACCESS);
|
||
|
||
// association connot create work report
|
||
if ($user->member_id == Member_Model::ASSOCIATION)
|
||
Controller::error(RECORD);
|
||
|
||
$selected = $user->id;
|
||
$arr_users[$user->id] = $user->get_full_name() . ' - ' . $user->login;
|
||
|
||
... | ... | |
(
|
||
NULL => '----- '.__('select user').' -----'
|
||
) + ORM::factory('user')
|
||
->where('member_id <>', Member_Model::ASSOCIATION)
|
||
->select_list('id', $concat);
|
||
|
||
// breadcrumbs navigation
|
Také k dispozici: Unified diff
Oprava nemoznosti pridani pracovniho vykazu/prace uzivateli s member_id = 1 (uzivatel pod sdruzenim).