php - Passing bizRule parameters to RBAC via accessRules? -



php - Passing bizRule parameters to RBAC via accessRules? -

from research don't think possible want create sure. possible pass parameters rbac bizrule via accessrules. right need check if post owner (along other checks) before allowing them edit/delete post. need compare owner_id in bizrule verify yii::app()->user->id == param['owner_id'] don't think can pass param using accessrules? or can i?

you can't it.

different actions requiring different bizrules. inefficient load info these prior possible action execution.

php yii rbac

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -