mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Allow compatibility wrapper on local external storage
The check was likely in place to prevent adding the wrapper on the root and home storage, which is not possible anyway since the encoding option cannot be set on that mount. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
This commit is contained in:
parent
e295f5a4a2
commit
4f86a5051f
1 changed files with 1 additions and 1 deletions
|
|
@ -147,7 +147,7 @@ class SetupManager {
|
|||
});
|
||||
|
||||
Filesystem::addStorageWrapper('oc_encoding', function ($mountPoint, IStorage $storage, IMountPoint $mount) {
|
||||
if ($mount->getOption('encoding_compatibility', false) && !$storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage') && !$storage->isLocal()) {
|
||||
if ($mount->getOption('encoding_compatibility', false) && !$storage->instanceOfStorage('\OCA\Files_Sharing\SharedStorage')) {
|
||||
return new Encoding(['storage' => $storage]);
|
||||
}
|
||||
return $storage;
|
||||
|
|
|
|||
Loading…
Reference in a new issue