Closed alarcl closed 11 years ago
I prepared a pull request for this 5 months ago, see #471. After discussing it, qiang opened an issue to decouple bizRules from authItems (see #499). Depending on how the separated bizRules will be stored, the solution will maybe support anonymous functions.
@alarcl it can be used as you've suggested. As @bwoester pointed out, the reason for eval is bizRule storage in database that has its own separate issue.
Why u use eval and php in string for bizRule?
May be use callback will be nicer?
in rbac.php somthing like this
in https://github.com/yiisoft/yii2/blob/master/framework/yii/rbac/Manager.php#L149 somthing like this