diff --git a/module/doc/view/side.html.php b/module/doc/view/side.html.php index 7c66358644..8ba198a0d8 100644 --- a/module/doc/view/side.html.php +++ b/module/doc/view/side.html.php @@ -36,7 +36,7 @@ if(empty($type)) $type = 'product';
  • 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'"); ?>
  • @@ -125,7 +125,7 @@ if(empty($type)) $type = 'product';
  • 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%'"); ?>