How user detail retrieved in rights module

Is any one know how user details retrieved in rights module??

i follow the linkage of function to call user information. But after following i stopped following function in RAssignmentDataProvider.


public function __construct($config=array())

	{

            

		$module = Rights::module();

		$userClass = $module->userClass;

		parent::__construct($userClass, $config);

		

		$this->_authorizer = $module->getAuthorizer();

                //echo '<pre>';

                //print_r($this->_authorizer);

	}

How is it works? and from where user table data fetched? :o

Finally i get the solution

In AssignmentController i have to pass only criteria like following.


public function actionView()

    {

                $criteria=new CDbCriteria();

                $criteria->compare('created_by',Yii::app()->user->id);

                // Create a data provider for listing the users

        $dataProvider = new RAssignmentDataProvider(array('criteria'=>$criteria,'pagination'=>array('pageSize'=>50,),));

 

        // Render the view

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

            'dataProvider'=>$dataProvider,

        ));

    }

And it will gives users created by logged in user B)