diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-11 10:10:10 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-04-11 10:10:10 +0200 |
commit | 35b8c0dd6887adfc045c5ff447553e69976af3d3 (patch) | |
tree | 07be09c426ab67d966a8ed4e94eab8e1b816efe6 /apps | |
parent | e2c4a0cecdfd127a1e985d71e92790ed5127ee04 (diff) | |
parent | a4dfc7194d5904d811eb17ba6a2c45e119e8d869 (diff) | |
download | nextcloud-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.php | 13 |
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']), ], ]; } |