* fix a bug.

This commit is contained in:
wangyidong
2015-08-14 09:02:48 +08:00
parent 12c4635f54
commit 5396c4bc3f
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@
<tbody> <tbody>
<?php <?php
$canBatchEdit = common::hasPriv('story', 'batchEdit'); $canBatchEdit = common::hasPriv('story', 'batchEdit');
$canBatchClose = common::hasPriv('story', 'batchClose') and strtolower($type) != 'closedbyme'; $canBatchClose = (common::hasPriv('story', 'batchClose') && strtolower($type) != 'closedbyme');
?> ?>
<?php foreach($stories as $key => $story):?> <?php foreach($stories as $key => $story):?>
<?php $storyLink = $this->createLink('story', 'view', "id=$story->id");?> <?php $storyLink = $this->createLink('story', 'view', "id=$story->id");?>

View File

@@ -141,7 +141,7 @@
<div class='table-actions clearfix'> <div class='table-actions clearfix'>
<?php <?php
$canBatchEdit = common::hasPriv('task', 'batchEdit'); $canBatchEdit = common::hasPriv('task', 'batchEdit');
$canBatchClose = common::hasPriv('task', 'batchClose') and strtolower($browseType) != 'closedBy'; $canBatchClose = (common::hasPriv('task', 'batchClose') && strtolower($browseType) != 'closedBy');
$canBatchAssignTo = common::hasPriv('task', 'batchAssignTo'); $canBatchAssignTo = common::hasPriv('task', 'batchAssignTo');
if(count($tasks)) if(count($tasks))
{ {