Skip to content
Snippets Groups Projects
Commit 3ea733c9 authored by Dieter Holvoet's avatar Dieter Holvoet Committed by Patrick Fey
Browse files

Issue #3376410 by DieterHolvoet, FeyP: The 9401 and 9402 update hooks can make...

Issue #3376410 by DieterHolvoet, FeyP: The 9401 and 9402 update hooks can make a Drupal 9 to 10 update fail
parent 9919d44a
Branches
Tags 4.0.1
1 merge request!10Issue #3376410: The 9401 and 9402 update hooks can make a Drupal 9 to 10 update fail
......@@ -15,6 +15,27 @@ function taxonomy_access_fix_update_last_removed() {
return 8202;
}
/**
* Implements hook_update_dependencies().
*/
function taxonomy_access_fix_update_dependencies() {
$dependencies = [];
// If a role still contains non-existing permissions during a Drupal 9 to 10
// update, the user update hook must run first. If we're still on Drupal 9,
// don't add these dependencies in order to not block updates.
if (function_exists('user_update_10000')) {
$dependencies['taxonomy_access_fix'][9401] = [
'user' => 10000,
];
$dependencies['taxonomy_access_fix'][9402] = [
'user' => 10000,
];
}
return $dependencies;
}
/**
* Populate 'VOCABULARY: View published term names' permission.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment