- Issue created by @malcomio
- Merge request !20Issue #3491001: Use update hook to change permissions, not hook_post_update_NAME → (Open) created by malcomio
When upgrading from 2.0.0 to 3.0.0-beta2, we encountered errors in our update hooks:
> [error] Adding non-existent permissions to a role is not allowed. The incorrect permissions are "administer search api exclude entity".
1. On a site with 2.x, add an update hook in a site module that changes permissions or enables modules
2. Upgrade to 3.x in the same release as the custom update hook
Change the hook_post_update_NAME
implementation added in
🐛
Permission "administer search api exclude entity" is confusing
Fixed
.
That will allow other modules to use hook_update_dependencies to run after the permission change from this module.
Active
3.0
Code