* Finish task #64967.

This commit is contained in:
tianshujie
2022-08-22 09:24:18 +08:00
parent c990e09f61
commit ee63dc4f17
2 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -2402,7 +2402,11 @@ EOD;
if(in_array($module, $this->config->programPriv->waterfall) and $this->app->tab == 'project' and $method != 'browse') return true;
$this->app->user = $this->session->user;
if(!commonModel::hasPriv($module, $method)) $this->deny($module, $method);
if(!commonModel::hasPriv($module, $method))
{
if($module == 'story' and !empty($this->app->params['storyType']) and strpos(",story,requirement,", ",{$this->app->params['storyType']},") !== false) $module = $this->app->params['storyType'];
$this->deny($module, $method);
}
}
else
{