instead of setting capabilities within the initializeAction you should to it like in LocalDriver and set the capabilities in the constructor. Otherwise uncheck the checkbox in file storage record doesn`t affect the cap check.
/**
* @param array $configuration
*/
public function __construct(array $configuration = [])
{
parent::__construct($configuration);
// The capabilities default of this driver. See CAPABILITY_* constants for possible values
$this->capabilities =
ResourceStorage::CAPABILITY_BROWSABLE
| ResourceStorage::CAPABILITY_PUBLIC
| ResourceStorage::CAPABILITY_WRITABLE;
}
/**
* @return void
*/
public function initialize()
{
$this->initializeBaseUrl()
->initializeSettings()
->initializeClient();
}
instead of setting capabilities within the initializeAction you should to it like in LocalDriver and set the capabilities in the constructor. Otherwise uncheck the checkbox in file storage record doesn`t affect the cap check.