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

Cannot create new roles or permissions #12

Closed deadmantfa closed 7 years ago

deadmantfa commented 8 years ago

Cannot create new permissions or roles using the crud, there is an error in the ItemController line 84

isset($_POST['ItemForm']['oldName']) is always true as its a string maybe an additional check of && $_POST['ItemForm']['oldName']!=='' would help cause it worked for me after that

githubjeka commented 8 years ago

Do you use master version?

githubjeka commented 8 years ago

Before create a new item and push SAVE button please try to push RESET FORM button.

deadmantfa commented 7 years ago

yes i do have the master version and I have reset the form, in both cases I got the error

githubjeka commented 7 years ago

Please try to use stable version

"githubjeka/yii2-gui-rbac": "1.0.2"
deadmantfa commented 7 years ago

sure will try this and get back to you....

deadmantfa commented 7 years ago

its working thank you.... btw this is just awesome thank you for creating this and sharing with us. Also update your README.md

githubjeka commented 7 years ago

Done. Thanks.