added RBAC
This commit is contained in:
15
lib/User/Search/RoleSearch.php
Normal file
15
lib/User/Search/RoleSearch.php
Normal file
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
namespace Da\User\Search;
|
||||
|
||||
use yii\rbac\Item;
|
||||
|
||||
class RoleSearch extends AbstractAuthItemSearch
|
||||
{
|
||||
/**
|
||||
* @inheritdoc
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return Item::TYPE_ROLE;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user