webvimark / user-management

154 stars 163 forks source link

Duplicate error on creating role #32

Closed oklimm closed 9 years ago

oklimm commented 9 years ago

Duplicate error on creating role if permission with the same name already exists, and vice versa

webvimark commented 9 years ago

Hi, this module uses yii2 built-in rbac system and it's architecture. All roles, permissions and routes are stored in the same table

oklimm commented 9 years ago

But when we are trying to create a second permission with the same name, a message appears error1 The same message we get if we try to create two roles with the same name. But on creating a role with the same name as permission has, we get error error2

webvimark commented 9 years ago

Fixed it, thank you for pointing on this issue