* Optimize code.

This commit is contained in:
mayue
2022-05-12 02:58:23 +00:00
parent 4460a50980
commit ac6e3ab491
2 changed files with 4 additions and 6 deletions
+1 -5
View File
@@ -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;