Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 243

Přidáno uživatelem Michal Kliment před více než 15 roky(ů)

Pridana kontrola pristupovych prav u vypisu transakci clena.

Zobrazit rozdíly:

freenetis/trunk/kohana/application/controllers/money_transfers.php
'order_by_direction' => $order_by_direction,
'limit_results' => $limit_results
));
// money_transfers fields
// money_transfers fields
$grid->order_field('mtid')->label('ID');
$grid->order_field('timestamp')->label(url_lang::lang('texts.Timestamp'));
$grid->order_field('text')->label(url_lang::lang('texts.Text'));
$grid->order_field('amount')->label(url_lang::lang('texts.Amount'));
// money_transfers_bank_infos fields
$grid->order_field('variable_symbol')->label(url_lang::lang('texts.Var'));
$grid->order_field('variable_symbol')->label(url_lang::lang('texts.Var'));
$grid->order_field('comment')->label(url_lang::lang('texts.Comment'));
// accounts fields
$grid->order_field('origin')->label(url_lang::lang('texts.From'));
......
if (isset($member_id))
{
// to do - access control
//if(!$this->acl_check_view(get_class($this),'transfers',$member_id))
// Controller::Error(1);
if(!$this->acl_check_view('Accounts_Controller','transfers',$member_id))
Controller::Error(1);
// gets grid settings
if (is_numeric($this->input->get('record_per_page')))

Také k dispozici: Unified diff