Admin view as per admin id

In my admin view I want only those rows to be seen by the current administrator that have his id




public function actionAdmin()

	{

		$model=new Member('search');

		$model->unsetAttributes();  // clear any default values

		if(isset($_GET['MemberDetails']))

			$model->attributes=$_GET['Member'];


		$this->render('admin',array(

			'model'=>$model,

		));

	}

Can I make any changes to the above code where rows belonging to him will only be shown

In Member model class, search function, set logged admin`s id.


$criteria->compare('id',<logged admins id>);