githubjeka / gui-rbac-yii2

GUI for RBAC Yii2 Auth manager
https://basic-rbac-githubjeka.c9.io/basic/web/index.php?r=rbac
84 stars 38 forks source link

create role has a problem #16

Closed hanie-hadadi closed 5 years ago

hanie-hadadi commented 6 years ago

when I'm trying to save a role I get internal server error xception 'yii\base\ErrorException' with message 'Call to undefined method githubjeka\rbac\models\ItemForm::getDb()'

Yii Version ===>2.0.15.1 PHP Version ==>5.6.24

ffurbo commented 6 years ago

The reason is ItemForm use custom validation rule "unique", but the name is the same as built-in validation rule. The simplest solution is to change the name of the function and update rules with new name.