Only check path for being accessible when the storage is a object home
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
e99d6b4dad
commit
3d0fd501f6
|
@ -825,7 +825,7 @@ class DefaultShareProvider implements IShareProvider {
|
||||||
$pathSections = explode('/', $data['path'], 2);
|
$pathSections = explode('/', $data['path'], 2);
|
||||||
// FIXME: would not detect rare md5'd home storage case properly
|
// FIXME: would not detect rare md5'd home storage case properly
|
||||||
if ($pathSections[0] !== 'files'
|
if ($pathSections[0] !== 'files'
|
||||||
&& in_array(explode(':', $data['storage_string_id'], 2)[0], ['home', 'object'])) {
|
&& (strpos($data['storage_string_id'], 'home::') === 0 || strpos($data['storage_string_id'], 'object::user') === 0)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in New Issue