Index: components/user.inc
===================================================================
--- components/user.inc	(revision 312)
+++ components/user.inc	(working copy)
@@ -247,6 +247,10 @@
           $data['rid'] = $rid;
           unset($data[$role]);
         }
+        if ($data['overwrite']) {
+            $data[$data['rid']]['_overwrite_'] = $data[$data['rid']];
+        }
+
         // make sure we don't overwrite all the permissions previously set for the role while assigning the new ones
 //        if (!$data['overwrite']) {
 //          $p = db_result(db_query("SELECT perm FROM {permission} WHERE rid = %d", $data['rid']));
