summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-04-11 10:10:10 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-04-11 10:10:10 +0200
commit35b8c0dd6887adfc045c5ff447553e69976af3d3 (patch)
tree07be09c426ab67d966a8ed4e94eab8e1b816efe6 /apps
parente2c4a0cecdfd127a1e985d71e92790ed5127ee04 (diff)
parenta4dfc7194d5904d811eb17ba6a2c45e119e8d869 (diff)
downloadnextcloud-server-35b8c0dd6887adfc045c5ff447553e69976af3d3.tar.gz
nextcloud-server-35b8c0dd6887adfc045c5ff447553e69976af3d3.zip
Merge pull request #22615 from owncloud/add-blacklisted-files-to-capabilities
Add blacklisted_files to capabilities
Diffstat (limited to 'apps')
-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']),
],
];
}