Projekt

Obecné

Profil

« Předchozí | Další » 

Revize eb7fd65e

Přidáno uživatelem Ondřej Fibich před více než 6 roky(ů)

Fixes #1094: Allows to delete former member older than 5 years.

Conflicts:
application/libraries/MY_Controller.php
application/models/bank_transfer.php

Zobrazit rozdíly:

application/helpers/condition.php
return FALSE;
}
}
/**
* Checks whether given member is former and has left before X years.
*
* @param object $item member query item
* @return boolean
*/
public static function is_former_for_more_than_limit_years($item)
{
$Xyears = Settings::get('member_former_limit_years');
$date_Xyears_before = date('Y-m-d', strtotime('-' . $Xyears . ' years'));
return ($item->type == Member_Model::TYPE_FORMER)
&& ($item->leaving_date <= $date_Xyears_before);
}
/**
* Checks if user contact is verifiable by sending verify code or link

Také k dispozici: Unified diff