|Status:||reviewed & tested by the community|
If a role does not have any permissions set, it prevents other roles (that come after it in alphabetical order) from having their permissions set correctly.
To test setup an 'aardvark' role and don't assign it any permissions.
Line 197 in secure_permissions_build_permissions() appears to be at fault. It stops it looping if a role has doesn't have any permissions set.