- Issue created by @mandclu
- 🇨🇦Canada joseph.olstad
Thanks for reporting.
For now most of my time is concentrated on 2x however I will review patches/issues for 3x
I had installed this module, and then decided to upgrade from the 2.0.x branch to 3.0.x branch, since the workflow is slightly customized (add an In Review step). Afterwards, I ended up having fatal errors with a number of common operations. I'm not sure if it's because I had already enabled the archive action as a bulk operation, but I had fatal errors trying a number of common places that seem unrelated, such as uninstalling a module.
The errors looked like:
RuntimeException: Adding non-existent permissions to a role is not allowed. The incorrect permissions are "moderated content bulk archive". in Drupal\user\Entity\Role->calculateDependencies() (line 207 of /home/ide/project/docroot/core/modules/user/src/Entity/Role.php).
I later noticed that the permissions and action class for the archive operation are not present in the 3.0.x branch.
Either provide this as an option (as it exists in the 2.0.x branch) or if it will only ever be available in a different form, create an update hook so sites upgrading from 2.0.x to 3.0.x don't experience fatal errors.
Active
3.0
Code
Thanks for reporting.
For now most of my time is concentrated on 2x however I will review patches/issues for 3x