summaryrefslogtreecommitdiffstats
path: root/apps/user_ldap/lib/User/User.php
diff options
context:
space:
mode:
authorsidey79 <s.butzek@gmx.de>2017-08-04 22:54:48 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2017-11-10 17:07:36 +0100
commit0b290c090480c81cd7ee7209489aaacc1cefb38f (patch)
tree54c12ba68c2dc22dc71ff1be209931d2f5f578f8 /apps/user_ldap/lib/User/User.php
parent1a2f9fe678fce329c37b69df47164a2eddead8f1 (diff)
downloadnextcloud-server-0b290c090480c81cd7ee7209489aaacc1cefb38f.tar.gz
nextcloud-server-0b290c090480c81cd7ee7209489aaacc1cefb38f.zip
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>
Diffstat (limited to 'apps/user_ldap/lib/User/User.php')
-rw-r--r--apps/user_ldap/lib/User/User.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/user_ldap/lib/User/User.php b/apps/user_ldap/lib/User/User.php
index afd43999c7f..a295e7fe6f2 100644
--- a/apps/user_ldap/lib/User/User.php
+++ b/apps/user_ldap/lib/User/User.php
@@ -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;