Commit 10cb3f06 authored by Jérome Perrin's avatar Jérome Perrin

display webdav link if user has "WebDAV Access" permission

rewrite the link to have webavs when url is https

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33370 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a23233fb
...@@ -33,7 +33,9 @@ ...@@ -33,7 +33,9 @@
</item> </item>
<item> <item>
<key> <string>description</string> </key> <key> <string>description</string> </key>
<value> <string></string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>icon</string> </key> <key> <string>icon</string> </key>
...@@ -49,7 +51,7 @@ ...@@ -49,7 +51,7 @@
<key> <string>permissions</string> </key> <key> <string>permissions</string> </key>
<value> <value>
<tuple> <tuple>
<string>View</string> <string>WebDAV access</string>
</tuple> </tuple>
</value> </value>
</item> </item>
...@@ -79,7 +81,7 @@ ...@@ -79,7 +81,7 @@
<dictionary> <dictionary>
<item> <item>
<key> <string>text</string> </key> <key> <string>text</string> </key>
<value> <string>python:object_url.replace(\'https\', \'webdav\').replace(\'http\', \'webdav\')</string> </value> <value> <string>python:object_url.replace(\'https\', \'webdavs\', 1).replace(\'http\', \'webdav\', 1)</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
1089 1090
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment