mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-24 19:20:12 +01:00
gui: add mandatory start date to certain users preventing them to search for older emails
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
parent
4b5f349710
commit
b7b61a80e5
@ -487,6 +487,10 @@ class ModelUserAuth extends Model {
|
||||
|
||||
AUDIT(ACTION_LOGIN, $username, '', '', 'successful auth against LDAP');
|
||||
|
||||
if(CUSTOM_EMAIL_QUERY_FUNCTION && function_exists(CUSTOM_EMAIL_QUERY_FUNCTION)) {
|
||||
call_user_func(CUSTOM_EMAIL_QUERY_FUNCTION, $username);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -425,6 +425,11 @@ function fetch_url($url = '') {
|
||||
function fixup_date_condition($field = '', $date1 = 0, $date2 = 0) {
|
||||
$date = "";
|
||||
|
||||
// Check if you want to apply a 'not before' value to a non-auditor user
|
||||
if(Registry::get('auditor') == 0 && Registry::get('not_before_date')) {
|
||||
$date1 = Registry::get('not_before_date');
|
||||
}
|
||||
|
||||
if($date1) {
|
||||
list($y,$m,$d) = preg_split("/(\.|\-|\/)/", $date1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user