mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-20 11:41:26 +00:00
only one token must match, see http://www.webdav.org/specs/rfc2518.html#rfc.section.9.4.2 [ci skip]
This commit is contained in:
@@ -120,10 +120,10 @@ public class WebDavServlet extends AbstractWebdavServlet {
|
||||
}
|
||||
|
||||
private boolean hasCorrectLockTokens(DavSession session, DavResource resource) {
|
||||
boolean access = true;
|
||||
boolean access = false;
|
||||
final String[] providedLockTokens = session.getLockTokens();
|
||||
for (ActiveLock lock : resource.getLocks()) {
|
||||
access &= ArrayUtils.contains(providedLockTokens, lock.getToken());
|
||||
access |= ArrayUtils.contains(providedLockTokens, lock.getToken());
|
||||
}
|
||||
return access;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user