* Modify the rights of restart in multi-user task.

This commit is contained in:
wumo
2018-03-28 20:30:48 +08:00
parent 14db58abf7
commit 558bd8fc9f
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -108,7 +108,7 @@ $lang->task->parent = '父任务';
$lang->task->parentAB = '父';
$lang->task->lblPri = 'P';
$lang->task->lblHour = '(h)';
$lang->task->deniedNotice = '此任务只允许由团队第一人开始。';
$lang->task->deniedNotice = '当前用户无【%s】权限';
$lang->task->ditto = '同上';
$lang->task->dittoNotice = "该任务与上一任务不属于同一项目!";
+3 -2
View File
@@ -14,11 +14,12 @@
<?php include '../../common/view/kindeditor.html.php';?>
<?php include '../../common/view/datepicker.html.php';?>
<?php js::set('confirmFinish', $lang->task->confirmFinish);?>
<?php if(!empty($task->team) && key($task->team) != $this->app->user->account):?>
<!-- IF it is multi-task, the suspened can only be restarted by the current user who it is assigned to.-->
<?php if(!empty($task->team) && $task->assignedTo != $this->app->user->account):?>
<div class="alert with-icon">
<i class="icon-info-sign"></i>
<div class="content">
<p><?php echo $lang->task->deniedNotice;?></p>
<p><?php echo sprintf($lang->task->deniedNotice, $lang->task->start);?></p>
</div>
</div>
<?php else:?>