- Issue created by @daletrexel
When upgrading from the 1.x branch to 2.x on Drupal 9, the permission "edit layout paragraphs plugin config" may not be removed cleanly. As a result, Upgrade Status will display a warning that " Invalid permissions will trigger runtime exceptions in Drupal 10 β . Permissions should be defined in a permissions.yml file or a permission callback." for the orphaned permissions left in config.
It is possible that enabling the new Layout Paragraphs Permissions module when upgrading to 2.x resolves this problem, but in our case we found we did not need it: we already have Field Permissions module managing access to the Layout Paragraphs UI. But the permission that was present in the 1.x version had been set on our site before the upgrade (even if it may not have been necessary), and after the upgrade, it remained in configuration in an orphan state. This lead to the alert from Upgrade Status module.
I'm not sure if this is something that requires a fix, but I figured I'd submit this ticket for anyone else who is upgrading this module in preparation for Drupal 10 and runs into the same issue.
There should probably be an update script to check for orphan permissions on the 2.x branch and remove them if present. This might be complicated if the new Layout Paragraphs Permissions submodule checks for such permissions and transfers them to the new submodule: you wouldn't want to remove the permissions if they're needed later.
Other solutions that don't require updating Layout Paragraphs:
Active
2.0
Code