Merge pull request #22615 from owncloud/add-blacklisted-files-to-capabilities

Add blacklisted_files to capabilities
This commit is contained in:
Thomas Müller 2016-04-11 10:10:10 +02:00
commit 35b8c0dd68
1 changed files with 13 additions and 0 deletions

View File

@ -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']),
],
];
}