diff --git a/api/src/Sharing.php b/api/src/Sharing.php index 02563d6e3e..317a4c401a 100644 --- a/api/src/Sharing.php +++ b/api/src/Sharing.php @@ -126,7 +126,7 @@ class Sharing { return $this->share['share_path']; } - + /** * Get share with email addresses */ @@ -324,6 +324,10 @@ class Sharing return '\\EGroupware\\Stylite\\Link\\Sharing'; } } + else if (class_exists ('\EGroupware\Collabora\Wopi') && $share['share_writable'] == \EGroupware\Collabora\Wopi::WOPI_SHARED) + { + return '\\EGroupware\\Collabora\\Wopi'; + } } catch(Exception $e){throw $e;} return '\\'.__NAMESPACE__ . '\\'. (self::is_entry($share) ? 'Link' : 'Vfs'). '\\Sharing';