Browse Source

Merge pull request #431 from creocoder/rbac-fixes-2

\yii\rbac\DbManager::isAssigned() signature fix
tags/2.0.0-beta
Qiang Xue 12 years ago
parent
commit
004f1a8a0b
  1. 2
      framework/yii/rbac/DbManager.php

2
framework/yii/rbac/DbManager.php

@ -280,7 +280,7 @@ class DbManager extends Manager
* @param string $itemName the item name * @param string $itemName the item name
* @return boolean whether the item has been assigned to the user. * @return boolean whether the item has been assigned to the user.
*/ */
public function isAssigned($itemName, $userId) public function isAssigned($userId, $itemName)
{ {
$query = new Query; $query = new Query;
return $query->select(array('item_name')) return $query->select(array('item_name'))

Loading…
Cancel
Save