Issue #3046289 by aurelianzaha, ysamoylenko: Profile module integration, bug in role to profile assignment check