summaryrefslogtreecommitdiffstats
path: root/lib/private/app
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2015-02-03 00:39:01 +0100
committerMorris Jobke <hey@morrisjobke.de>2015-02-03 00:39:01 +0100
commita7eedf014933277ff392824e1a6e62b041da58f8 (patch)
tree7d723d2d5ed605d6ea6b953ca32df9de6cabf2ec /lib/private/app
parent1bb8d5978cb6e05c81da7c1bb8cb5b33279e1667 (diff)
downloadnextcloud-server-a7eedf014933277ff392824e1a6e62b041da58f8.tar.gz
nextcloud-server-a7eedf014933277ff392824e1a6e62b041da58f8.zip
Disallow disabling of files app
Diffstat (limited to 'lib/private/app')
-rw-r--r--lib/private/app/appmanager.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/app/appmanager.php b/lib/private/app/appmanager.php
index 6d9aa0bfe37..7527c93dae9 100644
--- a/lib/private/app/appmanager.php
+++ b/lib/private/app/appmanager.php
@@ -131,8 +131,12 @@ class AppManager implements IAppManager {
* Disable an app for every user
*
* @param string $appId
+ * @throws \Exception if app can't be disabled
*/
public function disableApp($appId) {
+ if($appId === 'files') {
+ throw new \Exception("App 'files' can't be disabled.");
+ }
$this->appConfig->setValue($appId, 'enabled', 'no');
}
}