Rights Bizrule Not Working For Inherited Roles


I have around 15 roles and I restricted the authenticated role viewing only their profile by specifying bizrule like return Yii::app()->user->id === Yii::app()->request->getParam(id);.The problem is it’s working fine for the authenticated role according to the business rule but for other higher roles inherited from authenticated role were not working(throws 403 error not authorized)as the higher roles can view all the profiles.

Any help could be appreciated very much.