Merge branch 'pu/2013.03/modelconfig-hr'
[tine20] / tine20 / Tinebase / Convert / Json.php
index 4affe1b..6a95a80 100644 (file)
@@ -186,7 +186,15 @@ class Tinebase_Convert_Json implements Tinebase_Convert_Interface
             return;
         }
         
-        $controller = Tinebase_Core::getApplicationInstance($foreignRecordClassName);
+        try {
+            $controller = Tinebase_Core::getApplicationInstance($foreignRecordClassName);
+        } catch (Tinebase_Exception_AccessDenied $tead) {
+            return;
+        }
+        
+        if (method_exists($controller, 'modlogActive')) {
+            $modlogActive = $controller->modlogActive(FALSE);
+        }
         
         if (Tinebase_Core::isLogLevel(Zend_Log::TRACE)) Tinebase_Core::getLogger()->trace(__METHOD__ . '::' . __LINE__ 
             . ' Fetching ' . $foreignRecordClassName . ' by id: ' . print_r($foreignIds, TRUE));