diff options
Diffstat (limited to 'lib/private/app.php')
-rw-r--r-- | lib/private/app.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/private/app.php b/lib/private/app.php index 3a1f731d621..60b644e58e2 100644 --- a/lib/private/app.php +++ b/lib/private/app.php @@ -321,6 +321,9 @@ class OC_App { * @param string $app app */ public static function disable($app) { + if($app === 'files') { + throw new \Exception("files can't be disabled."); + } self::$enabledAppsCache = array(); // flush // check if app is a shipped app or not. if not delete \OC_Hook::emit('OC_App', 'pre_disable', array('app' => $app)); |