<?php

class DefaultController extends RController {

    public function filters() {
        return array(
            'rights',
        );
    }

    /**
     * Lists all models.
     */
    public function actionIndex() {
        $dataProvider = new CActiveDataProvider('User', array(
            'criteria' => array(
                'condition' => 'status>' . User::STATUS_BANNED,
            ),
            'pagination' => array(
                'pageSize' => Yii::app()->controller->module->user_page_size,
            ),
        ));
        $this->render('/user/index', array(
            'dataProvider' => $dataProvider,
        ));
    }

}
