diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-09-04 15:23:55 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-11-17 15:50:24 +0100 |
commit | 7cb12d4bff80e91cb844b9ed0021c290455279ee (patch) | |
tree | a0f26f18966564800af59ab8fd309f99da900a91 /remote.php | |
parent | 36528c6ef622876f9d89d3b0fbfafc8e44f569fb (diff) | |
download | nextcloud-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.php | 4 |
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; |