diff --git a/lib/app.php b/lib/app.php
old mode 100755
new mode 100644
index 56132c0867172adf10942ba0f24fd0a485f4c161..60bd0ef476bff4b1933015fd5fa184ea28b1a607
--- a/lib/app.php
+++ b/lib/app.php
@@ -139,6 +139,20 @@ class OC_App{
 
 		OC_Appconfig::setValue($app,'types',$appTypes);
 	}
+	
+	/**
+	 * check if app is shipped
+	 * @param string $appid the id of the app to check
+	 * @return bool
+	 */
+	public function isShipped($appid){
+		$info = self::getAppInfo($appid);
+		if(isset($info['shipped']) && $info['shipped']=='true'){
+			return true;
+		} else {
+			return false;
+		}
+	}
 
 	/**
 	 * get all enabled apps