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.
I created a feature
The feature has a role
The role has a create node permission
When I enable the feature, the role is created. I do have to manually enable the role per person (which is fine and expected).
But when I disable a feature, I would expect that the role associated with that feature would disappear.
And when re-enabled those who had the feature should still have it.
Right now, the role does not go away.
Comments
Comment #1
alexweber CreditAttribution: alexweber commentedPossible duplicate of #1055460: Disabling a feature does not disown content type
Comment #2
hefox CreditAttribution: hefox commentedCurrent expected behaviour for soft exportables.
There's no disable column in roles table, so there's no way features can disable the role without core hacks. If it deleted it, it'd delete the role id, leading to potential data loss, which disable is not suppose to do, etc.
I don't think there's anything features can do in this case.
Comment #3
hefox CreditAttribution: hefox commentedBeen a while, no work, not pursueing. Purge patch likely will take care of it if that ever lands