Added last access handling.
[timetracker.git] / WEB-INF / lib / common.lib.php
index 69c38b7..3dce388 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;
 }