Permalink
Browse files

PHP7

  • Loading branch information...
1 parent 4922995 commit 7a3dbeaa0931feaafda18a0f259a6f9793858311 @cdujeu cdujeu committed Oct 14, 2016
Showing with 7 additions and 2 deletions.
  1. +7 −2 core/src/plugins/access.sftp_psl/SftpPSLAccessDriver.php
@@ -24,6 +24,7 @@
use DOMNode;
use PclZip;
+use Pydio\Access\Core\Model\AJXP_Node;
use Pydio\Access\Core\Model\UserSelection;
use Pydio\Access\Driver\StreamProvider\FS\FsAccessDriver;
use Pydio\Core\Model\ContextInterface;
@@ -173,8 +174,12 @@ public function recursiveRmdir($path)
return false;
}
- public function isWriteable($dir, $type="dir")
+ /**
+ * @param AJXP_Node $node
+ * @return bool
+ */
+ public function isWriteable(AJXP_Node $node)
{
- return is_writable($dir);
+ return is_writable($node->getUrl());
}
}

0 comments on commit 7a3dbea

Please sign in to comment.