diff --git a/core/src/core/classes/sabredav/ajaxplorer/class.AJXP_Sabre_NodeLeaf.php b/core/src/core/classes/sabredav/ajaxplorer/class.AJXP_Sabre_NodeLeaf.php index 409ee0e75c..e26b959b0c 100755 --- a/core/src/core/classes/sabredav/ajaxplorer/class.AJXP_Sabre_NodeLeaf.php +++ b/core/src/core/classes/sabredav/ajaxplorer/class.AJXP_Sabre_NodeLeaf.php @@ -52,6 +52,9 @@ function put($data){ // Warning, passed by ref $p = $this->path; + if(!AuthService::getLoggedUser()->canRead($this->repository->getId())){ + throw new \Sabre\DAV\Exception\Forbidden() ; + } $this->getAccessDriver()->nodeWillChange($p, intval($_SERVER["CONTENT_LENGTH"])); $stream = fopen($this->getUrl(), "w");