localgovdrupal / localgov_alert_banner

Alert banner module for LocalGovDrupal
GNU General Public License v2.0
4 stars 8 forks source link

Fix non-existent permissions on Drupal 10 #203

Closed andybroomfield closed 2 years ago

andybroomfield commented 2 years ago

RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions are "use localgov_alert_banners transition publish", "use localgov_alert_banners transition unpublish". in Drupal\user\Entity\Role->calculateDependencies() (line 206 of core/modules/user/src/Entity/Role.php).

This is when installing localgov alert banner on Drupal 10 alpha 3, but not installing scheduled transitions.

andybroomfield commented 2 years ago
Screenshot 2022-04-27 at 10 47 48 pm
andybroomfield commented 2 years ago

Need to add workflows.workflow.localgov_alert_banners as a dependency of the emergency banner role.