Browse Source

Merge pull request #1272 from sergebezborodov/fix-rbac-select

fix rbac select statement
tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
1c54089423
  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