// Check if operation allowed by OLAT VFS security callback
DirContext resources = getResources(req);
VFSDirContext vfsContext = (VFSDirContext) resources;
String destinationPath = req.getHeader("Destination");
if (!vfsContext.canWrite(destinationPath)) {
resp.sendError(WebdavStatus.SC_FORBIDDEN);
return;
}
copyResource(req, resp);