code: private boolean isAllowedPath(String workspaceName, String path)
     {
        if(pattern == null)
           return true;
        Matcher matcher= pattern.matcher(workspaceName+":"+path);
        if(!matcher.find())
        {
           log.warn("Access not allowed to webdav resource {}",path);
           return false;
        }
        return true;
     }
docs: Check resource access allowed
  @param workspaceName
  @param path
  @return true if access is allowed otherwise false