fix: polish secure view

This commit is contained in:
Michael Barz
2024-07-04 17:14:40 +02:00
parent 88acb9eeb4
commit 7860cb8a6f
4 changed files with 22 additions and 7 deletions
@@ -77,7 +77,7 @@ func parseWopiDiscovery(body io.Reader) (map[string]map[string]string, error) {
for _, app := range netzone.SelectElements("app") {
for _, action := range app.SelectElements("action") {
access := action.SelectAttrValue("name", "")
if access == "view" || access == "edit" {
if access == "view" || access == "edit" || access == "view_comment" {
ext := action.SelectAttrValue("ext", "")
urlString := action.SelectAttrValue("urlsrc", "")