title: How to add filter into rights module of yii?
body: <p>I want to add filter into the cgridview of rights module of yii.</p>
  
  <p>this is the cgridview of rights module</p>
  
  <pre><code>&lt;?php $this-&gt;widget('zii.widgets.grid.CGridView', array(
          'dataProvider'=&gt;$dataProvider,
          'template'=&gt;"{items}\n{pager}",
          'emptyText'=&gt;Rights::t('core', 'No users found.'),
          'htmlOptions'=&gt;array('class'=&gt;'grid-view assignment-table'),
          //'filter'=&gt;$dataProvider,
          'columns'=&gt;array(
              array(
                  'name'=&gt;'name',
                  'header'=&gt;Rights::t('core', 'Name'),
                  'type'=&gt;'raw',
                  'htmlOptions'=&gt;array('class'=&gt;'name-column'),
                  'value'=&gt;'$data-&gt;getAssignmentNameLink()',
                  'filter'=&gt;'name',
              ),
              array(
                  'name'=&gt;'assignments',
                  'header'=&gt;Rights::t('core', 'Roles'),
                  'type'=&gt;'raw',
                  'htmlOptions'=&gt;array('class'=&gt;'role-column'),
                  'value'=&gt;'$data-&gt;getAssignmentsText(CAuthItem::TYPE_ROLE)',
              ),
              /*
              array(
                  'name'=&gt;'assignments',
                  'header'=&gt;Rights::t('core', 'Tasks'),
                  'type'=&gt;'raw',
                  'htmlOptions'=&gt;array('class'=&gt;'task-column'),
                  'value'=&gt;'$data-&gt;getAssignmentsText(CAuthItem::TYPE_TASK)',
              ),
              array(
                  'name'=&gt;'assignments',
                  'header'=&gt;Rights::t('core', 'Operations'),
                  'type'=&gt;'raw',
                  'htmlOptions'=&gt;array('class'=&gt;'operation-column'),
                  'value'=&gt;'$data-&gt;getAssignmentsText(CAuthItem::TYPE_OPERATION)',
              ),
              */
          )
      )); ?&gt;
  </code></pre>
  
  <p>This is the actionview of assignmentcontroller</p>
  
  <pre><code>public function actionView()
      {
          // Create a data provider for listing the users
          $dataProvider = new RAssignmentDataProvider(array(
              'pagination'=&gt;array(
                  'pageSize'=&gt;50,
              ),
          ));
  
          // Render the view
          $this-&gt;render('view', array(
              'dataProvider'=&gt;$dataProvider,
          ));
      }
  </code></pre>
  
  <p>How can I add filter into cgridview of rights module?</p>