From 86f546ff6487b9ac8b18ad14ca290b8051f0496e Mon Sep 17 00:00:00 2001
From: Georg Ehrke <developer@georgehrke.com>
Date: Mon, 16 Jun 2014 13:49:02 +0200
Subject: [PATCH] disable code check for shipped apps

---
 lib/private/installer.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/private/installer.php b/lib/private/installer.php
index f7c770bf9a..466aa4a8f8 100644
--- a/lib/private/installer.php
+++ b/lib/private/installer.php
@@ -310,7 +310,7 @@ class OC_Installer{
 		}
 		$info=OC_App::getAppInfo($extractDir.'/appinfo/info.xml', true);
 		// check the code for not allowed calls
-		if(!OC_Installer::checkCode($info['id'], $extractDir)) {
+		if(!$isShipped && !OC_Installer::checkCode($info['id'], $extractDir)) {
 			OC_Helper::rmdirr($extractDir);
 			throw new \Exception($l->t("App can't be installed because of not allowed code in the App"));
 		}
-- 
GitLab