diff --git a/module/block/view/dynamic.html.php b/module/block/view/dynamic.html.php index 8be1e176db..523440bf7c 100644 --- a/module/block/view/dynamic.html.php +++ b/module/block/view/dynamic.html.php @@ -2,7 +2,7 @@
block->emptyTip;?>
diff --git a/module/project/view/build.html.php b/module/project/view/build.html.php index bf03427cb2..2b95cc8255 100644 --- a/module/project/view/build.html.php +++ b/module/project/view/build.html.php @@ -52,7 +52,7 @@ build->filePath;?> build->date;?> build->builder;?> - actions;?> + actions;?> @@ -76,15 +76,6 @@ date?> builder]?> -
- createLink('build', 'delete', "buildID=$build->id&confirm=yes"); - echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"buildList\",confirmDelete)", '', '', "class='btn' title='{$lang->build->delete}'"); - } - ?> -
project->bug = $lang->project->viewBug; common::printIcon('project', 'bug', "project=$project->id&orderBy=status&build=$build->id", $build, 'list'); common::printIcon('build', 'edit', "buildID=$build->id", $build, 'list'); + if(common::hasPriv('build', 'delete', $build)) + { + $deleteURL = $this->createLink('build', 'delete', "buildID=$build->id&confirm=yes"); + echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"buildList\",confirmDelete)", '', '', "class='btn' title='{$lang->build->delete}'"); + } ?> diff --git a/module/project/view/testtask.html.php b/module/project/view/testtask.html.php index 7a7bff2bcc..a632dd35b2 100644 --- a/module/project/view/testtask.html.php +++ b/module/project/view/testtask.html.php @@ -65,7 +65,7 @@ testtask->begin);?> testtask->end);?> statusAB);?> - actions;?> + actions;?> @@ -98,20 +98,16 @@ -
- createLink('testtask', 'delete', "taskID=$task->id&confirm=yes"); - echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"taskList\",confirmDelete)", '', '', "class='btn' title='{$lang->testtask->delete}'"); - } - ?> -
id", $task, 'list', 'sitemap'); common::printIcon('testtask', 'linkCase', "taskID=$task->id", $task, 'list', 'link'); common::printIcon('testreport', 'browse', "objectID=$task->product&objectType=product&extra=$task->id", $task, 'list','flag'); common::printIcon('testtask', 'edit', "taskID=$task->id", $task, 'list'); + if(common::hasPriv('testtask', 'delete', $task)) + { + $deleteURL = $this->createLink('testtask', 'delete', "taskID=$task->id&confirm=yes"); + echo html::a("javascript:ajaxDelete(\"$deleteURL\",\"taskList\",confirmDelete)", '', '', "class='btn' title='{$lang->testtask->delete}'"); + } ?>