To reproduce:
- Have an administrator role.
- Create a new content type.
- Review permissions for the administrator role.
Expecting:
- administrator role to have permissions for new content type.
What happened instead:
- administrator role did not have permissions for new content type.
This issue could affect any module that dynamically generates permissions.
Comments
Comment #1
Freso commentedThis does not just apply to content types, any dynamically generated permissions created after a module's install won't be caught by user.module:
This is the only place new permissions are granted to
user_admin_role, which might also mean that permissions added with module updates aren't caught either (though I haven't tested this).Comment #2
webchickIt looks like this issue is older, but #787152: Dynamic permissions cannot be automatically assigned to or removed from roles has more discussion. Marking as duplicate.