summaryrefslogtreecommitdiffstats
path: root/public.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 /public.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 'public.php')
-rw-r--r--public.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/public.php b/public.php
index 0e04db66da7..c5c227ef460 100644
--- a/public.php
+++ b/public.php
@@ -37,7 +37,9 @@ try {
OC_App::loadApps(array('authentication'));
OC_App::loadApps(array('filesystem', 'logging'));
- OC_Util::checkAppEnabled($app);
+ if (!\OC::$server->getAppManager()->isInstalled($app)) {
+ throw new Exception('App not installed: ' . $app);
+ }
OC_App::loadApp($app);
OC_User::setIncognitoMode(true);