Skip to content

Commit

Permalink
Issue #1234834 by catch: Fixed user_update_7006() causes fatal errors…
Browse files Browse the repository at this point in the history
… when trying to fill 'module' column of permissions table on disabled modules.
  • Loading branch information
webchick committed Aug 16, 2011
1 parent 4725ee8 commit 97a2249
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions modules/user/user.install
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}

/**
Expand Down

0 comments on commit 97a2249

Please sign in to comment.