Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When installing a site with Drush, hook_modules_enabled can be fired multiple times, with different modules available each time. This means different permissions are defined each time, but the use of a static variable in og_get_permissions() means permissions are not reloaded when a new module is enabled. This means that default permissions are not correctly set up on install.
In other words, that static variable needs resetting. The attached patch does this :-)
Comment | File | Size | Author |
---|---|---|---|
og-default-permissions-drush-no-prefix.patch (Drush compatible) | 686 bytes | james.williams | |
Comments
Comment #1
amitaibuFixed, thanks.