Index: modules/rules_core.rules.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/rules/modules/Attic/rules_core.rules.inc,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 rules_core.rules.inc
--- modules/rules_core.rules.inc	16 Dec 2010 09:30:43 -0000	1.1.2.1
+++ modules/rules_core.rules.inc	29 Dec 2010 08:40:37 -0000
@@ -86,6 +86,11 @@
       'ui class' => 'RulesDataUIListInteger',
       'wrap' => TRUE,
     ),
+   'list<userroles>' => array(
+      'label' => t('list of user roles'),
+      'ui class' => 'RulesDataUIListUserRoles',
+      'wrap' => TRUE,
+    ),
    'entity' => array(
       'label' => t('any entity'),
       'group' => t('Entity'),
Index: modules/user.rules.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/rules/modules/Attic/user.rules.inc,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 user.rules.inc
--- modules/user.rules.inc	21 Dec 2010 13:40:30 -0000	1.1.2.2
+++ modules/user.rules.inc	29 Dec 2010 08:41:24 -0000
@@ -120,7 +120,7 @@
       'parameter' => array(
         'account' => array('type' => 'user', 'label' => t('User')),
         'roles' => array(
-          'type' => 'list<integer>',
+          'type' => 'list<userroles>',
           'label' => t('Roles'),
           'options list' => 'entity_metadata_user_roles',
         ),
Index: ui/ui.data.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/rules/ui/Attic/ui.data.inc,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 ui.data.inc
--- ui/ui.data.inc	16 Dec 2010 09:30:44 -0000	1.1.2.1
+++ ui/ui.data.inc	29 Dec 2010 08:42:21 -0000
@@ -326,3 +326,16 @@
     return $form;
   }
 }
+/**
+ * UI for lists of User Roles.
+ */
+class RulesDataUIListUserRoles extends RulesDataUIListText {
+   
+  public static function render($value) {
+    $value = array_intersect_key(user_roles(), $value);
+    return array(
+      'content' => array('#markup' => check_plain(implode(', ', $value))),
+      '#attributes' => array('class' => array('rules-parameter-list')),
+    );
+  }
+}

