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

sun’s picture

Title: permissions that are not associated with modules » User permissions are not associated with modules
Component: database update system » user system
Issue tags: +Needs backport to D7

We 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.

webchick’s picture

Status: Active » Closed (duplicate)

Let'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.