aboutsummaryrefslogtreecommitdiffstats
path: root/remote.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-09-04 15:23:55 +0200
committerRobin Appelman <icewind@owncloud.com>2014-11-17 15:50:24 +0100
commit7cb12d4bff80e91cb844b9ed0021c290455279ee (patch)
treea0f26f18966564800af59ab8fd309f99da900a91 /remote.php
parent36528c6ef622876f9d89d3b0fbfafc8e44f569fb (diff)
downloadnextcloud-server-7cb12d4bff80e91cb844b9ed0021c290455279ee.tar.gz
nextcloud-server-7cb12d4bff80e91cb844b9ed0021c290455279ee.zip
Add sabredav plugin to check if a user has access to an app
Diffstat (limited to 'remote.php')
-rw-r--r--remote.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/remote.php b/remote.php
index d854b1d65a6..7993566afec 100644
--- a/remote.php
+++ b/remote.php
@@ -43,7 +43,9 @@ try {
$file = OC::$SERVERROOT .'/'. $file;
break;
default:
- OC_Util::checkAppEnabled($app);
+ if (!\OC::$server->getAppManager()->isInstalled($app)) {
+ throw new Exception('App not installed: ' . $app);
+ }
OC_App::loadApp($app);
$file = OC_App::getAppPath($app) .'/'. $parts[1];
break;