* Adjust code
This commit is contained in:
@@ -158,14 +158,14 @@ class groupModel extends model
|
||||
* @access public
|
||||
* @return array
|
||||
*/
|
||||
public function getByAccount($account, $allVison = false)
|
||||
public function getByAccount($account, $allVision = false)
|
||||
{
|
||||
return $this->dao->select('t2.*')->from(TABLE_USERGROUP)->alias('t1')
|
||||
->leftJoin(TABLE_GROUP)->alias('t2')
|
||||
->on('t1.`group` = t2.id')
|
||||
->where('t1.account')->eq($account)
|
||||
->andWhere('t2.project')->eq(0)
|
||||
->beginIF(!$allVison)->andWhere('t2.vision')->eq($this->config->vision)->fi()
|
||||
->beginIF(!$allVision)->andWhere('t2.vision')->eq($this->config->vision)->fi()
|
||||
->fetchAll('id');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user