From cf9870cbd12284d5f520dda074f8981ba214a37a Mon Sep 17 00:00:00 2001 From: zyx0814 Date: Tue, 8 Oct 2024 18:18:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=99=AE=E9=80=9A=E7=94=A8?= =?UTF-8?q?=E6=88=B7=E4=BF=9D=E5=AD=98=E6=96=B0=E5=BB=BA=E7=9A=84=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E6=97=B6=E6=8F=90=E7=A4=BA=E6=B2=A1=E6=9C=89=E6=9D=83?= =?UTF-8?q?=E9=99=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dzz/system/fileselection/ajax.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dzz/system/fileselection/ajax.php b/dzz/system/fileselection/ajax.php index e02a734..628f7f5 100644 --- a/dzz/system/fileselection/ajax.php +++ b/dzz/system/fileselection/ajax.php @@ -168,41 +168,41 @@ if ($operation == 'upload') {//上传图片文件 switch ($type) { case 'newTxt': $filename = lang('new_txt') . '.txt'; - if (!perm_check::checkperm_Container($path, 'upload', $bz)) { + if (!perm_check::checkperm_Container($fid, 'upload', $bz)) { exit(json_encode(array('error' => lang('privilege')))); } $content = ' '; break; case 'newDzzDoc': $filename = lang('new_dzzdoc') . '.dzzdoc'; - if (!perm_check::checkperm_Container($path, 'upload', $bz)) { + if (!perm_check::checkperm_Container($fid, 'upload', $bz)) { exit(json_encode(array('error' => lang('privilege')))); } $content = ' '; break; case 'newDoc': $filename = lang('new_word') . '.docx'; - if (!perm_check::checkperm_Container($path, 'upload', $bz)) { + if (!perm_check::checkperm_Container($fid, 'upload', $bz)) { exit(json_encode(array('error' => lang('privilege')))); } $content = file_get_contents(DZZ_ROOT . './dzz/images/newfile/word.docx'); break; case 'newExcel': $filename = lang('new_excel') . '.xlsx'; - if (!perm_check::checkperm_Container($path, 'upload', $bz)) { + if (!perm_check::checkperm_Container($fid, 'upload', $bz)) { exit(json_encode(array('error' => lang('privilege')))); } $content = file_get_contents(DZZ_ROOT . './dzz/images/newfile/excel.xlsx'); break; case 'newPowerPoint': $filename = lang('new_PowerPoint') . '.pptx'; - if (!perm_check::checkperm_Container($path, 'upload', $bz)) { + if (!perm_check::checkperm_Container($fid, 'upload', $bz)) { exit(json_encode(array('error' => lang('privilege')))); } $content = file_get_contents(DZZ_ROOT . './dzz/images/newfile/ppt.pptx'); break; default: - if (!perm_check::checkperm_Container($path, 'upload', $bz)) { + if (!perm_check::checkperm_Container($fid, 'upload', $bz)) { exit(json_encode(array('error' => lang('privilege')))); } $content = ' ';