Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
use OCP\Share\IAttributes;
use OCP\Share\IShare;
use OCP\Share\IShareProvider;
+use function str_starts_with;
/**
* Class DefaultShareProvider
if ($pathSections[0] !== 'files'
&& (strpos($data['storage_string_id'], 'home::') === 0 || strpos($data['storage_string_id'], 'object::user') === 0)) {
return false;
+ } elseif ($pathSections[0] === '__groupfolders'
+ && str_starts_with($pathSections[1], 'trash/')
+ ) {
+ // exclude shares leading to trashbin on group folders storages
+ return false;
}
return true;
}