* finish task #2871.

This commit is contained in:
wangyidong
2017-01-11 14:55:27 +08:00
parent 311bb335c4
commit 4f4dfe068c
3 changed files with 19 additions and 1 deletions
+2
View File
@@ -445,6 +445,8 @@ class bug extends control
if($bug->project and !$this->loadModel('project')->checkPriv($this->project->getByID($bug->project)))
{
echo(js::alert($this->lang->project->accessDenied));
$loginLink = $this->config->requestType == 'GET' ? "?{$this->config->moduleVar}=user&{$this->config->methodVar}=login" : "user{$this->config->requestFix}login";
if(strpos($this->server->http_referer, $loginLink) !== false) die(js::locate(inlink('index')));
die(js::locate('back'));
}