diff --git a/lib/WeBWorK/ConfigObject/permission_checkboxlist.pm b/lib/WeBWorK/ConfigObject/permission_checkboxlist.pm index 2c70f183d1..4b51cd360a 100644 --- a/lib/WeBWorK/ConfigObject/permission_checkboxlist.pm +++ b/lib/WeBWorK/ConfigObject/permission_checkboxlist.pm @@ -52,8 +52,8 @@ sub comparison_value ($self, $val) { } sub entry_widget ($self, $default, $is_secret = 0) { - my $c = $self->{c}; - my $userRoles = $self->{c}->ce->{userRoles}; + my $c = $self->{c}; + my $userRoles = $self->{c}->ce->{userRoles}; $default = role_and_above($userRoles, $default) unless ref($default) eq 'ARRAY'; return $c->c( map { @@ -73,7 +73,7 @@ sub entry_widget ($self, $default, $is_secret = 0) { )->join('') ) ) - } grep { $_ ne 'nobody' } sort { $userRoles->{$a} <=> $userRoles->{$b} } keys(%$userRoles) + } grep { $_ ne 'nobody' } sort { $userRoles->{$a} <=> $userRoles->{$b} } keys(%$userRoles) )->join(''); }