* Optimize code.
This commit is contained in:
@@ -491,7 +491,9 @@ class projectModel extends model
|
||||
$link = helper::createLink($module, $method, "projectID=%s");
|
||||
}
|
||||
elseif($module == 'project' and $method == 'testreport')
|
||||
{ $link = helper::createLink($module, $method, "projectID=%s"); }
|
||||
{
|
||||
$link = helper::createLink($module, $method, "projectID=%s");
|
||||
}
|
||||
elseif($module == 'project' and $method == 'build')
|
||||
{
|
||||
$link = helper::createLink($module, $method, "projectID=%s");
|
||||
|
||||
@@ -87,11 +87,7 @@ foreach($projects as $programID => $programProjects)
|
||||
}
|
||||
|
||||
/* Set link when project redefines permissions. */
|
||||
if($project->auth == 'reset')
|
||||
{
|
||||
$this->loadModel('common')->resetProjectPriv($project->id);
|
||||
if(!common::hasPriv($module, $method)) $link = helper::createLink('project', 'index', "projectID=%s");
|
||||
}
|
||||
if($project->auth == 'reset') $link = helper::createLink('project', 'index', "projectID=%s");
|
||||
|
||||
if($project->model != 'scrum') $icon = "<i class='icon icon-{$project->model}'></i> ";
|
||||
$projectName = $icon . $project->name;
|
||||
|
||||
Reference in New Issue
Block a user