sub apply_all_roles {
my $applicant = shift;
- _apply_all_roles($applicant, sub { 1 }, @_);
+ _apply_all_roles($applicant, undef, @_);
}
sub _apply_all_roles {
}
}
- @$roles = grep { local $_ = $_->[0]; $role_filter->() } @$roles;
+ if(defined $role_filter){
+ @$roles = grep { local $_ = $_->[0]; $role_filter->() } @$roles;
+ }
return unless @$roles;