* 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
{
+3 -1
View File
@@ -1004,7 +1004,9 @@ class user extends control
$this->view->method = $method;
$this->view->denyPage = $this->referer; // The denied page.
$this->view->refererBeforeDeny = $refererBeforeDeny; // The referer of the denied page.
$this->app->loadLang($module);
if($module == 'requirement') $this->app->loadLang('story');
if($module != 'requirement') $this->app->loadLang($module);
$this->app->loadLang('my');
/* Check deny type. */