Update User.php
Makes the time between needsRefresh configurable via app config option updateAttribuesInterval. Default is still 86400 secons which is one day. Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
parent
1a2f9fe678
commit
0b290c0904
|
@ -387,8 +387,7 @@ class User {
|
|||
$lastChecked = $this->config->getUserValue($this->uid, 'user_ldap',
|
||||
self::USER_PREFKEY_LASTREFRESH, 0);
|
||||
|
||||
//TODO make interval configurable
|
||||
if((time() - intval($lastChecked)) < 86400 ) {
|
||||
if((time() - intval($lastChecked)) < $this->config->getAppValue('user_ldap', 'updateAttribuesInterval', 86400) ) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue