]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/ttTimeHelper.class.php
Made Allow overlap a configurable option.
[timetracker.git] / WEB-INF / lib / ttTimeHelper.class.php
index 7bc5e646f15712f17b193ca110ff5c34aa07be18..7cbf4ddaa5aa83993a2e3f2264ed7439bf606932 100644 (file)
@@ -595,8 +595,8 @@ class ttTimeHelper {
   //   $record_id - optional record id we may be editing, excluded from overlap set
   static function overlaps($user_id, $date, $start, $finish, $record_id = null) {
     // Do not bother checking if we allow overlaps.
-    if (defined('ALLOW_OVERLAP') && ALLOW_OVERLAP == true)
-      return false;
+    global $user;
+    if ($user->allow_overlap) return false;
 
     $mdb2 = getConnection();