In the last task, we limited user access, but we did not update the menus. The site menu provides links to objects that users do not have permission to access, and the object menus provide links to actions that users do not have authorization to take. It would be nice if we could associate the menus to the access we have already defined, so that we do not have to manually coordinate menu contents with
accessRules. To do this, we created an extension to the CMenu widget.
<?php Yii::import('zii.widgets.CMenu'); /** * Auth Menu extends CMenu to apply access rules to menu items before * displaying ...