* Remove redundant code.

This commit is contained in:
qiyu-xie
2021-03-05 16:57:36 +08:00
parent 4fe3aa2f3a
commit c015dc5910
-20
View File
@@ -332,26 +332,6 @@ class groupModel extends model
}
}
if($this->config->systemMode == 'classic')
{
$prjBrowse = $this->dao->select('module')->from(TABLE_GROUPPRIV)
->where('module')->eq('program')
->andWhere('method')->eq('prjbrowse')
->andWhere('`group`')->eq($groupID)
->fetch('module');
if(!$prjBrowse)
{
$this->dao->update(TABLE_GROUPPRIV)
->set('module')->eq('program')
->set('method')->eq('prjbrowse')
->where('module')->eq('project')
->andWhere('method')->eq('list')
->andWhere('`group`')->eq($groupID)
->exec();
}
}
return true;
}