Add blacklisted_files to capabilities
This commit is contained in:
parent
a0e2eae7de
commit
a4dfc7194d
1 changed files with 13 additions and 0 deletions
|
@ -24,6 +24,7 @@
|
||||||
namespace OCA\Files;
|
namespace OCA\Files;
|
||||||
|
|
||||||
use OCP\Capabilities\ICapability;
|
use OCP\Capabilities\ICapability;
|
||||||
|
use OCP\IConfig;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class Capabilities
|
* Class Capabilities
|
||||||
|
@ -31,6 +32,17 @@ use OCP\Capabilities\ICapability;
|
||||||
* @package OCA\Files
|
* @package OCA\Files
|
||||||
*/
|
*/
|
||||||
class Capabilities implements ICapability {
|
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
|
* Return this classes capabilities
|
||||||
|
@ -41,6 +53,7 @@ class Capabilities implements ICapability {
|
||||||
return [
|
return [
|
||||||
'files' => [
|
'files' => [
|
||||||
'bigfilechunking' => true,
|
'bigfilechunking' => true,
|
||||||
|
'blacklisted_files' => $this->config->getSystemValue('blacklisted_files', ['.htaccess']),
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue