Closed Claud closed 8 years ago
That's quite weird name for a role... Usualy names are meaningful strings like "role_super_admin".
the whole RBAC architecture is built around strings. Examples:
A lot has to be changed in the architecture in order to accept integers.
Its easier for you to implement strings for your constants. This which would not lead to many problems if these are applied consistently. An example:
const ROLE_SUPER_ADMIN = 'super-admin';
const ROLE_ADMIN = 'admin';
Please elaborate if integers are of vital importance in order for this issue to be opened again.
more opinions about this https://github.com/yiisoft/yii2/pull/9832#issuecomment-145531425
I have default roles
This check not work
https://github.com/yiisoft/yii2/blob/master/framework/rbac/DbManager.php#L219