Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
user system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 Aug 2011 at 05:31 UTC
Updated:
29 Jul 2014 at 19:52 UTC
After #1234834: 'module' column of role_permission table is not populated on upgrades permissions are not associated with modules any more and so on uninstall they are not removed.
Comments
Comment #1
sunWe could take the code from #15 of that issue and put it into module_enable() and module_disable() instead.
In other words: Whenever we're going to disable modules, make sure that we map permissions to modules first. So in case a disabled module gets uninstalled, we have its permissions recorded.
Comment #2
webchickLet's fix this over here, IMO. #1234834: 'module' column of role_permission table is not populated on upgrades But the solution in #1 sounds feasible.