Get Sharing to recognize editable Collabora shares for determining class

This commit is contained in:
nathangray 2019-10-08 14:43:17 -06:00
parent 2ef8b726e0
commit 8d58409211

View File

@ -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';