documentation update + code fixes
This commit is contained in:
@ -18,8 +18,8 @@ use yii\rbac\DbManager;
|
||||
class AuthDbManagerComponent extends DbManager implements AuthManagerInterface
|
||||
{
|
||||
/**
|
||||
* @param int|null $type If null will return all auth items
|
||||
* @param array $excludeItems Items that should be excluded from result array
|
||||
* @param int|null $type If null will return all auth items
|
||||
* @param array $excludeItems Items that should be excluded from result array
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
@ -63,7 +63,7 @@ class AuthDbManagerComponent extends DbManager implements AuthManagerInterface
|
||||
->select('b.*')
|
||||
->from(['a' => $this->assignmentTable, 'b' => $this->itemTable])
|
||||
->where('{{a}}.[[item_name]]={{b}}.[[name]]')
|
||||
->andWhere(['a.user_id' => (string) $userId]);
|
||||
->andWhere(['a.user_id' => (string)$userId]);
|
||||
|
||||
$roles = [];
|
||||
foreach ($query->all($this->db) as $row) {
|
||||
|
||||
Reference in New Issue
Block a user