summaryrefslogtreecommitdiffstats
path: root/apps/files/lib
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@owncloud.com>2016-02-24 11:00:20 +0100
committerJoas Schilling <nickvergessen@owncloud.com>2016-04-04 15:00:31 +0200
commita4dfc7194d5904d811eb17ba6a2c45e119e8d869 (patch)
tree9833743bcd2fd07ed7ce3adca117e2aca5a53274 /apps/files/lib
parenta0e2eae7de06ce31026ab0fbca9e86f8938bcd44 (diff)
downloadnextcloud-server-a4dfc7194d5904d811eb17ba6a2c45e119e8d869.tar.gz
nextcloud-server-a4dfc7194d5904d811eb17ba6a2c45e119e8d869.zip
Add blacklisted_files to capabilities
Diffstat (limited to 'apps/files/lib')
-rw-r--r--apps/files/lib/capabilities.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/files/lib/capabilities.php b/apps/files/lib/capabilities.php
index 7d50b51bb97..dc49ca174b3 100644
--- a/apps/files/lib/capabilities.php
+++ b/apps/files/lib/capabilities.php
@@ -24,6 +24,7 @@
namespace OCA\Files;
use OCP\Capabilities\ICapability;
+use OCP\IConfig;
/**
* Class Capabilities
@@ -31,6 +32,17 @@ use OCP\Capabilities\ICapability;
* @package OCA\Files
*/
class Capabilities implements ICapability {
+ /** @var IConfig */
+ protected $config;
+
+ /**
+ * Capabilities constructor.
+ *
+ * @param IConfig $config
+ */
+ public function __construct(IConfig $config) {
+ $this->config = $config;
+ }
/**
* Return this classes capabilities
@@ -41,6 +53,7 @@ class Capabilities implements ICapability {
return [
'files' => [
'bigfilechunking' => true,
+ 'blacklisted_files' => $this->config->getSystemValue('blacklisted_files', ['.htaccess']),
],
];
}