localgovdrupal / localgov_workflows

Default editorial workflow for LocalGov Drupal content.
GNU General Public License v2.0
0 stars 1 forks source link

Workflows requires the contributor user which may not be present if localgov_roles module is already enabled #5

Closed stephen-cox closed 3 years ago

stephen-cox commented 3 years ago

If the roles module was enabled on a site before the latest changes they won't get the new contributor role, but Workflows assumes this role exists.

We should write an update hook to check if the localgov_contributor role exists and, if not, import the configuration for the role.

From discussion on https://github.com/localgovdrupal/localgov_core/issues/115