From 48024e6cf8a8822495b64daba636bfa31a9b8be9 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 25 Oct 2017 10:48:31 +0800 Subject: [PATCH] =?UTF-8?q?Finish=20task#3273=20=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E5=8F=97=E9=99=90=E7=94=A8=E6=88=B7=E6=97=A0=E6=B3=95=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E5=BE=85=E5=8A=9E=E5=92=8C=E6=97=A5=E5=BF=97,cost:1?= =?UTF-8?q?=20left:0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/common/model.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/module/common/model.php b/module/common/model.php index 941b993d29..21cf5cb273 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -1162,6 +1162,8 @@ class commonModel extends model global $app; if(!empty($app->user->admin)) return true; + if($module = 'todo' and ($method == 'create' or $method == 'batchcreate')) return true; + if($module = 'effort' and ($method == 'createforobject' or $method == 'batchcreate')) return true; // limited project $limitedProject = false;