Merge branch '2013.10' into 2014.11
[tine20] / tine20 / ActiveSync / Controller.php
index 013409e..5bc7343 100644 (file)
@@ -127,6 +127,9 @@ class ActiveSync_Controller extends Tinebase_Controller_Abstract
         Syncroton_Registry::set(Syncroton_Registry::SYNCSTATEBACKEND,    new Syncroton_Backend_SyncState(Tinebase_Core::getDb(), SQL_TABLE_PREFIX . 'acsync_'));
         Syncroton_Registry::set(Syncroton_Registry::CONTENTSTATEBACKEND, new Syncroton_Backend_Content(Tinebase_Core::getDb(), SQL_TABLE_PREFIX . 'acsync_'));
         Syncroton_Registry::set(Syncroton_Registry::POLICYBACKEND,       new Syncroton_Backend_Policy(Tinebase_Core::getDb(), SQL_TABLE_PREFIX . 'acsync_'));
-        Syncroton_Registry::set('loggerBackend',       Tinebase_Core::getLogger());
+        Syncroton_Registry::set(Syncroton_Registry::LOGGERBACKEND,       Tinebase_Core::getLogger());
+        Syncroton_Registry::set(Syncroton_Registry::SESSION_VALIDATOR,   function() {
+            return ! Tinebase_Core::inMaintenanceMode();
+        });
     }
 }