Fixes#85
When a link is shared on external storage and user is not logged in, the
owner returned by the $file object is null. Use owner information from
the $share object whenever available.
(cherry picked from commit ee09fb0748)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
This was initially introduced in OC so that we know which directory to
go after we close the editor but this seems unnecessary here in NC as
richdocuments is just an iframe which is removed from DOM when we close
the document.
(cherry picked from commit a5f6569591)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Added some lines which were lost after rewrite with version 1.1.22.
(cherry picked from commit c72f22e180)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
loleaflet expect a BCP47 language tag syntax while OC.getLocale returns
a lanugage tag where subtags are separated by '_' instead of '-'
(BCP47).
It seems safe to just replace '_' with '-' before feeding it to
loleaflet
(cherry picked from commit 5596ae17ce)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Also simplify the logic during file action registration. Basically, we
should try to open all known mimetypes; file permissions are taken care
of later in the WOPI protocol.
Without this commit, it is not possible to open a document in a
directory for which user has no write access.
(cherry picked from commit f36c5106d6)
Signed-off-by: Andras Timar <andras.timar@collabora.com>
<description>Collabora Online allows you to to work with all kinds of office documents directly in your browser. This application requires Collabora Cloudsuite to be installed on one of your servers, please read the documentation to learn more about that.</description>
<summary>Edit office documents directly in your browser.</summary>
<licence>AGPL</licence>
<version>1.1.24</version>
<version>1.11.34</version>
<author>Collabora Productivity based on work of Frank Karlitschek, Victor Dubiniuk</author>