diff --git a/module/project/control.php b/module/project/control.php index 49c41a6998..0af37a8d2d 100644 --- a/module/project/control.php +++ b/module/project/control.php @@ -1562,6 +1562,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(); + });