/** * Prepare the ACL for a given admin * * @params $admin Admin_Model_Admin * @return Acl_Model_Acl */ public function prepare($admin) { if (!is_null($admin->getRoleId())) { $role = new Acl_Model_Role(); $this->__role_obj = $role->getRoleById($admin->getRoleId()); $this->__role = $this->__role_obj->getCode(); $this->__build(); } return $this; }