Do create role and permission function actually work?
umbalaconmeogia opened this issue · comments
When I use the UI screen rbac/permission/create
or rbac/role/create
to create new one, it throw errors as below.
Missing argument 1 for yii2mod\rbac\models\AuthItemModel::find(), called in ...\vendor\yiisoft\yii2\validators\UniqueValidator.php on line 210 and defined
This is because in UniqueValidator, it call the ActiveRecord::find() (as all of us get familiar),
but the class yii2mod\rbac\models\AuthItemModel itself redefines the find($id) function.
public static function find($id)
{
//...
}
So I wonder whether there is anyone can use these UI functions to create/update Role and Permission.
Hi, I fixed this issue, can you update this package to 2.3 version?
Thank you for your reply. It seems that I've got the package version 2.0 because I'm using PHP 5.6 :(
Yes, the last versions require php >= >=7.0.0
OK. Thanks.