mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-04-09 14:33:44 +00:00
Implements controllers for locking and unlocking with the webdav protocol (wip)
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user