This commit is contained in:
tanghucheng
2024-04-09 10:41:09 +08:00
parent d1cf37abe3
commit 187d263793
+1 -1
View File
@@ -4856,7 +4856,7 @@ class storyModel extends model
$moreActions = '';
$disabledFeatures = ",{$this->config->disabledFeatures},";
if(($this->config->edition == 'max' or $this->config->edition == 'ipd') and $this->app->tab == 'project' and common::hasPriv('story', 'importToLib') and strpos($disabledFeatures, ',assetlibStorylib,') === false and strpos($disabledFeatures, ',assetlib,') === false)
if($story->type != 'requirement' and ($this->config->edition == 'max' or $this->config->edition == 'ipd') and $this->app->tab == 'project' and common::hasPriv('story', 'importToLib') and strpos($disabledFeatures, ',assetlibStorylib,') === false and strpos($disabledFeatures, ',assetlib,') === false)
{
$moreActions .= '<li>' . html::a('#importToLib', "<i class='icon icon-assets'></i> " . $this->lang->story->importToLib, '', 'class="btn" data-toggle="modal"') . '</li>';
}