Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-09-04 17:23:55 +0400
committerRobin Appelman <icewind@owncloud.com>2014-11-17 17:50:24 +0300
commit7cb12d4bff80e91cb844b9ed0021c290455279ee (patch)
treea0f26f18966564800af59ab8fd309f99da900a91 /remote.php
parent36528c6ef622876f9d89d3b0fbfafc8e44f569fb (diff)
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;