summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwebchick <webchick@24967.no-reply.drupal.org>2011-08-16 01:56:50 -0500
committerwebchick <webchick@24967.no-reply.drupal.org>2011-08-16 01:56:50 -0500
commit97a224951ba27f831ba40dd610559b5cd213fe5b (patch)
treef1c362d35179b6af06fdcad47f5715051e9fa2fa
parent4725ee8e702f36933d03fc8d842d8438eb7be27f (diff)
downloadbrdo-97a224951ba27f831ba40dd610559b5cd213fe5b.tar.gz
brdo-97a224951ba27f831ba40dd610559b5cd213fe5b.tar.bz2
Issue #1234834 by catch: Fixed user_update_7006() causes fatal errors when trying to fill 'module' column of permissions table on disabled modules.
-rw-r--r--modules/user/user.install7
1 files changed, 0 insertions, 7 deletions
diff --git a/modules/user/user.install b/modules/user/user.install
index 2867b97ed..9d855ea1d 100644
--- a/modules/user/user.install
+++ b/modules/user/user.install
@@ -598,13 +598,6 @@ function user_update_7006(&$sandbox) {
// Add a new field for the fid.
db_add_field('role_permission', 'module', $module_field);
}
- $permissions = user_permission_get_modules();
- foreach ($permissions as $key => $value) {
- db_update('role_permission')
- ->fields(array('module' => $value))
- ->condition('permission', $key)
- ->execute();
- }
}
/**