Revize 1898
Přidáno uživatelem Ondřej Fibich před více než 11 roky(ů)
freenetis/branches/1.1/application/controllers/members.php | ||
---|---|---|
Controller::error(RECORD);
|
||
|
||
// access control
|
||
if (!$this->acl_check_add(get_class($this), 'members') ||
|
||
if (!$this->acl_check_new(get_class($this), 'members') ||
|
||
!$this->acl_check_edit(get_class($this), 'entrance_date') ||
|
||
!$this->acl_check_new('Accounts_Controller', 'transfers'))
|
||
Controller::error(ACCESS);
|
freenetis/branches/1.1/application/controllers/devices.php | ||
---|---|---|
|
||
// change connected from if member is applicant and if
|
||
// he is not connected yet
|
||
if ($cr_model->member->type == Member_Model::TYPE_APPLICANT && (
|
||
empty($cr_model->member->applicant_connected_from) ||
|
||
$cr_model->member->applicant_connected_from == '0000-00-00'
|
||
if ($device->user->member->type == Member_Model::TYPE_APPLICANT && (
|
||
empty($device->user->member->applicant_connected_from) ||
|
||
$device->user->member->applicant_connected_from == '0000-00-00'
|
||
))
|
||
{
|
||
// connected from now
|
||
$cr_model->member->applicant_connected_from = date('Y-m-d');
|
||
$cr_model->member->save_throwable();
|
||
$device->user->member->applicant_connected_from = date('Y-m-d');
|
||
$device->user->member->save_throwable();
|
||
}
|
||
|
||
// expired subnets (#465)
|
freenetis/branches/1.1/version.php | ||
---|---|---|
* The current version of FreenetIS.
|
||
* This value must be changed by developers in a new release of FreenetIS.
|
||
*/
|
||
define('FREENETIS_VERSION', '1.1.0~alpha19');
|
||
define('FREENETIS_VERSION', '1.1.0~alpha20');
|
Také k dispozici: Unified diff
freenetis-1.1.0~alpha20
Opravy:
- fixes #538: chyba v pridavani zarizeni (aktualizace applicant connected from)