From 79aca158d8176a03d0de055210490a71a8368669 Mon Sep 17 00:00:00 2001 From: wangyuting2 <851424971@qq.com> Date: Mon, 10 Oct 2022 02:05:06 +0000 Subject: [PATCH] * Finish task #71645. --- module/project/control.php | 8 ++++++++ module/project/view/managepriv.html.php | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/module/project/control.php b/module/project/control.php index 84aa4924f5..8ed996c703 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -1560,6 +1560,14 @@ class project extends control } if($project->model == 'scrum') unset($this->lang->resource->projectstory->track); + if(!$project->multiple) + { + unset($this->lang->resource->execution->create); + unset($this->lang->resource->execution->start); + unset($this->lang->resource->execution->delete); + } + + $this->view->project = $project; $this->lang->resource = $this->project->processProjectPrivs($project->model); } diff --git a/module/project/view/managepriv.html.php b/module/project/view/managepriv.html.php index c6cee6cf52..722932face 100644 --- a/module/project/view/managepriv.html.php +++ b/module/project/view/managepriv.html.php @@ -146,6 +146,11 @@ $(document).ready(function() $parent.find('input[value=browse]').prop('checked', $parent.find('input[name^=actions]:not(input[value=browse]):checked').length > 0); }) + + multiple):?> + $('#project').append($('#execution').html()); + $('#execution').parent().remove(); + });