Yii Blog Demo Access rules

How can I modify the access rules in yii blog demo so that the only the owner of the post (as well as admin) can modify the post as well as delete the comments. But any other other user shouldn’t be able be able to do that (even the post owner shouldn’t be able to update the comments. he should be only be able to delete them)

What is a good way to approach this.

I though little more complicated access rules should achieve this. But couldn’t find examples for more complicated access rules

Thanks,

read the RBAC guide, there is a good example which shows you how to implement this. Also try the rights extension, its really useful.

After guide try reading Getting to Understand Hierarchical RBAC Scheme, I found it very usefull.

Same problem here, any good idea?