From dc20d2a54f1082b1c4cc5d0b7a41a4caa3aeafcd Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 8 Oct 2001 13:37:41 +0000 Subject: [PATCH] need to override vfs-acl-check, as vfs is not using acl, and infolog assumes attached files have the same premissions as the infolog entry they are attached --- infolog/inc/class.boinfolog.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/infolog/inc/class.boinfolog.inc.php b/infolog/inc/class.boinfolog.inc.php index 243e8fa116..b77f06c237 100644 --- a/infolog/inc/class.boinfolog.inc.php +++ b/infolog/inc/class.boinfolog.inc.php @@ -288,6 +288,7 @@ return lang('Invalid filename').': '.$tfname; } } + $this->vfs->override_acl = 1; if ($tfname) // file is local { $this->vfs->symlink($tfname,$fname,array(RELATIVE_NONE|VFS_REAL,RELATIVE_ROOT)); @@ -300,6 +301,7 @@ array ('mime_type' => $type, 'comment' => stripslashes ($comment), 'app' => 'infolog')); + $this->vfs->override_acl = 0; } function delete_attached($info_id,$fname = '') @@ -316,7 +318,9 @@ function info_attached($info_id,$filename) { + $this->vfs->override_acl = 1; $attachments = $this->vfs->ls($this->vfs_path($info_id,$filename),array(REALTIVE_NONE)); + $this->vfs->override_acl = 0; if (!count($attachments) || !$attachments[0]['name']) { @@ -327,7 +331,9 @@ function list_attached($info_id) { + $this->vfs->override_acl = 1; $attachments = $this->vfs->ls($this->vfs_path($info_id),array(REALTIVE_NONE)); + $this->vfs->override_acl = 0; if (!count($attachments) || !$attachments[0]['name']) { @@ -351,6 +357,7 @@ { return False; } + $this->vfs->override_acl = 1; return $this->vfs->read($this->vfs_path($info_id,$filename),array(RELATIVE_ROOT)); }