* Finish task #8376.

This commit is contained in:
holan20180123
2020-11-18 11:34:41 +08:00
parent 726bbc775b
commit d1bb42ad3a
27 changed files with 70 additions and 95 deletions
+2 -2
View File
@@ -44,7 +44,7 @@
echo "<div id='bysuiteTab' class='btn-group'>";
echo html::a('javascript:;', $currentLable . " <span class='caret'></span>", '', "class='btn btn-link' data-toggle='dropdown'");
if(!empty($this->config->CRProduct) or $product->status != 'closed')
if(common::canModify('product', $product))
{
echo "<ul class='dropdown-menu' style='max-height:240px; overflow-y:auto'>";
@@ -105,7 +105,7 @@
?>
</ul>
</div>
<?php if(!empty($this->config->CRProduct) or $product->status != 'closed'):?>
<?php if(common::canModify('product', $product)):?>
<div class='btn-group'>
<button type='button' class='btn btn-link dropdown-toggle' data-toggle='dropdown' id='importAction'><i class='icon icon-import muted'></i> <?php echo $lang->import ?><span class='caret'></span></button>
<ul class='dropdown-menu' id='importActionMenu'>