* Finish task #64967.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user