From 095a36023ead2f73d5da7f0c967541dd9a8ee30e Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 8 Jun 2011 12:54:43 +0000 Subject: [PATCH] allow extending class to supply stat of parent --- phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php index c97bc987dd..e5049583cd 100644 --- a/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php +++ b/phpgwapi/inc/class.sqlfs_stream_wrapper.inc.php @@ -525,13 +525,13 @@ class sqlfs_stream_wrapper implements iface_stream_wrapper * @param string $url * @return boolean TRUE on success or FALSE on failure */ - static function unlink ( $url ) + static function unlink ( $url, $parent_stat=null ) { if (self::LOG_LEVEL > 1) error_log(__METHOD__."($url)"); $path = parse_url($url,PHP_URL_PATH); - if (!($stat = self::url_stat($path,STREAM_URL_STAT_LINK)) || !egw_vfs::check_access(dirname($path),egw_vfs::WRITABLE)) + if (!($stat = self::url_stat($path,STREAM_URL_STAT_LINK)) || !egw_vfs::check_access(dirname($path),egw_vfs::WRITABLE, $parent_stat)) { self::_remove_password($url); if (self::LOG_LEVEL) error_log(__METHOD__."($url) permission denied!");