Skip to content
Snippets Groups Projects
Commit 6824a5ce authored by Vincent Petry's avatar Vincent Petry
Browse files

Merge pull request #11538 from owncloud/webdav-creatable-info

Use the cached fileinfo to get creatable permissions
parents 6fa03870 19de425a
No related branches found
No related tags found
No related merge requests found
......@@ -84,7 +84,7 @@ class OC_Connector_Sabre_Directory extends OC_Connector_Sabre_Node
* @return void
*/
public function createDirectory($name) {
if (!$this->fileView->isCreatable($this->path)) {
if (!$this->info->isCreatable()) {
throw new \Sabre\DAV\Exception\Forbidden();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment