Browse Source

fix rbac select statement

tags/2.0.0-beta
Serge Bezborodov 11 years ago
parent
commit
1259b0dac6
  1. 2
      framework/yii/rbac/DbManager.php

2
framework/yii/rbac/DbManager.php

@ -392,7 +392,7 @@ class DbManager extends Manager
->where(['user_id' => $userId, 'name' => new Expression('item_name')])
->createCommand($this->db);
} else {
$command = $query->select('name', 'type', 'description', 't1.biz_rule', 't1.data')
$command = $query->select(['name', 'type', 'description', 't1.biz_rule', 't1.data'])
->from([$this->itemTable . ' t1', $this->assignmentTable . ' t2'])
->where(['user_id' => $userId, 'type' => $type, 'name' => new Expression('item_name')])
->createCommand($this->db);

Loading…
Cancel
Save