]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/common.lib.php
Added last access handling.
[timetracker.git] / WEB-INF / lib / common.lib.php
index 69c38b731e63a867d6530c7d99faf96f1bd5f1e8..3dce388f5193706cbca402054db09678fb2f694b 100644 (file)
@@ -340,8 +340,10 @@ function ttAccessAllowed($required_right)
   }
 
   // Check if user has the right.
-  if (in_array($required_right, $user->rights))
+  if (in_array($required_right, $user->rights)) {
+    ttUserHelper::updateLastAccess();
     return true;
+  }
 
   return false;
 }