From 77caa6c8c5bef85e932deb0aee7e7ac210c7ac7f Mon Sep 17 00:00:00 2001 From: liyuchun Date: Thu, 31 Mar 2022 13:43:35 +0800 Subject: [PATCH 1/4] * Fix bug #13324. --- module/misc/lang/en.php | 9 --------- module/misc/lang/zh-cn.php | 2 -- 2 files changed, 11 deletions(-) diff --git a/module/misc/lang/en.php b/module/misc/lang/en.php index f215b3e610..6e426afc9a 100644 --- a/module/misc/lang/en.php +++ b/module/misc/lang/en.php @@ -28,27 +28,18 @@ $lang->misc->zentao->icons['service'] = 'heart'; $lang->misc->zentao->about['bizversion'] = 'ZenTao Biz'; $lang->misc->zentao->about['official'] = "Official Website"; -$lang->misc->zentao->about['changelog'] = "Change Log"; $lang->misc->zentao->about['license'] = "License"; - - $lang->misc->zentao->support['vip'] = "VIP Support"; $lang->misc->zentao->support['manual'] = "User Manual"; - - - - $lang->misc->zentao->cowin['reportbug'] = "Report Bug "; $lang->misc->zentao->cowin['feedback'] = "Feedback"; $lang->misc->zentao->cowin['translate'] = "Translate"; $lang->misc->zentao->cowin['recommend'] = "More"; - $lang->misc->zentao->service['idc'] = 'ZenTao Cloud'; $lang->misc->zentao->service['custom'] = 'ZenTao Custom'; -$lang->misc->zentao->service['servicemore']= 'More'; global $config; $lang->misc->zentao->others['chanzhi'] = " Zsite"; diff --git a/module/misc/lang/zh-cn.php b/module/misc/lang/zh-cn.php index 7fdcc84c52..48c663e480 100644 --- a/module/misc/lang/zh-cn.php +++ b/module/misc/lang/zh-cn.php @@ -42,13 +42,11 @@ $lang->misc->zentao->support['qqgroup'] = "官方QQ群"; $lang->misc->zentao->cowin['reportbug'] = "汇报Bug"; $lang->misc->zentao->cowin['feedback'] = "反馈需求"; -$lang->misc->zentao->cowin['translate'] = "参与翻译"; $lang->misc->zentao->cowin['recommend'] = "推荐给朋友"; $lang->misc->zentao->service['zentaotrain']= '禅道使用培训'; $lang->misc->zentao->service['idc'] = '禅道在线托管'; $lang->misc->zentao->service['custom'] = '禅道定制开发'; -$lang->misc->zentao->service['servicemore']= '更多服务...'; global $config; $lang->misc->zentao->others['chanzhi'] = " 蝉知门户"; From 4240b563c91707dd47397aa6d0a66f437e30978f Mon Sep 17 00:00:00 2001 From: liyuchun Date: Fri, 1 Apr 2022 10:27:27 +0800 Subject: [PATCH 2/4] * Fix bug #21061. --- module/todo/control.php | 6 ++++++ module/todo/view/view.html.php | 4 ---- module/user/view/todo.html.php | 4 +++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/module/todo/control.php b/module/todo/control.php index 902196ed9a..4badd94c1f 100644 --- a/module/todo/control.php +++ b/module/todo/control.php @@ -375,6 +375,12 @@ class todo extends control if(defined('RUN_MODE') && RUN_MODE == 'api') return $this->send(array('status' => 'fail', 'message' => '404 Not found')); return print(js::error($this->lang->notFound) . js::locate('back')); } + + if($todo->private and $todo->account != $this->app->user->account) + { + return print(js::error($this->lang->todo->thisIsPrivate) . js::locate('back')); + } + /* Save the session. */ if(!isonlybody()) { diff --git a/module/todo/view/view.html.php b/module/todo/view/view.html.php index 185a5daf75..f7540d8330 100644 --- a/module/todo/view/view.html.php +++ b/module/todo/view/view.html.php @@ -13,7 +13,6 @@ systemMode);?> -private or ($todo->private and $todo->account == $app->user->account)):?>