You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expected that method (because of unambiguous name) gives me only Roles for user_id.
In fact it doesn't count on value of the item_type.
I suppose it could be fixed as follows:
$query = (newQuery)->select('b.*')
->from(['a' => $this->assignmentTable, 'b' => $this->itemTable])
->where('{{a}}.[[item_name]]={{b}}.[[name]]')
->andWhere(['a.user_id' => (string) $userId])
// FIX: and only the roles
->andWhere('{{b}}.[[type]]='.Item::TYPE_ROLE);
The text was updated successfully, but these errors were encountered:
I expected that method (because of unambiguous name) gives me only
Roles
foruser_id
.In fact it doesn't count on value of the
item_type
.I suppose it could be fixed as follows:
The text was updated successfully, but these errors were encountered: