* fix for check priv.

This commit is contained in:
wangyidong
2019-02-28 08:40:55 +08:00
parent e171290300
commit 57a491bbc6

View File

@@ -36,7 +36,7 @@ if(empty($type)) $type = 'product';
<li>
<?php
$text = zget($lang->doclib->create, $tabValue, '');
if($text) echo html::a($this->createLink($tabValue, 'create'), $text, '', "class='text-ellipsis'");
if($text and common::hasPriv($tabValue, 'create')) echo html::a($this->createLink($tabValue, 'create'), $text, '', "class='text-ellipsis'");
?>
</li>
<?php else:?>
@@ -125,7 +125,7 @@ if(empty($type)) $type = 'product';
<li>
<?php
$text = zget($lang->doclib->create, $tabValue, '');
if($text) echo html::a($this->createLink('doc', 'createLib', "type={$tabValue}"), $text, '', "class='iframe' data-width='70%'");
if($text and common::hasPriv('doc', 'createLib')) echo html::a($this->createLink('doc', 'createLib', "type={$tabValue}"), $text, '', "class='iframe' data-width='70%'");
?>
</li>
<?php else:?>