From 8d9aace2dedeadded2063292099641ef480766d6 Mon Sep 17 00:00:00 2001 From: liumengyi Date: Fri, 22 Jul 2022 13:42:08 +0800 Subject: [PATCH] * Fix bug. --- module/action/model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/action/model.php b/module/action/model.php index 510c61c9a2..30b1be5396 100755 --- a/module/action/model.php +++ b/module/action/model.php @@ -1223,8 +1223,8 @@ class actionModel extends model $requirements = $relatedData['requirements']; $aclViews = isset($this->app->user->rights['acls']['views']) ? $this->app->user->rights['acls']['views'] : array(); - $authedProjects = (empty($aclViews) or (!empty($aclViews) and !empty($aclViews['project']))) ? ",{$this->app->user->view->projects}," : array(); - $authedExecutions = (empty($aclViews) or (!empty($aclViews) and !empty($aclViews['execution']))) ? ",{$this->app->user->view->sprints},": array(); + $authedProjects = (empty($aclViews) or (!empty($aclViews) and !empty($aclViews['project']))) ? ",{$this->app->user->view->projects}," : ''; + $authedExecutions = (empty($aclViews) or (!empty($aclViews) and !empty($aclViews['execution']))) ? ",{$this->app->user->view->sprints},": ''; foreach($actions as $i => $action) {