Implements controllers for locking and unlocking with the webdav protocol (wip)

This commit is contained in:
2026-04-02 14:36:13 +02:00
parent a3b857253a
commit ff9e4f2709
10 changed files with 543 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<D:prop xmlns:D="DAV:">
<D:lockdiscovery>
<D:activelock>
<D:lockscope><D:exclusive/></D:lockscope>
<D:locktype><D:write/></D:locktype>
<D:depth>infinity</D:depth>
{% set user = lock.users.first %}
{% if user is not same as null %}
<D:owner><D:href>{{ lock.users.first }}</D:href></D:owner>
{% endif %}
<D:timeout>{{ timeout }}</D:timeout>
<D:locktoken>
<D:href>{{ lock.token }}</D:href>
</D:locktoken>
</D:activelock>
</D:lockdiscovery>
</D:prop>