Skip to content

Commit

Permalink
Fix the maketext call for an uknown permission level.
Browse files Browse the repository at this point in the history
  • Loading branch information
drgrice1 committed Jan 17, 2025
1 parent 37385f7 commit 7347812
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,10 @@
<%= select_field $fieldName => \@values,
id => $fieldName . '_id', class => 'form-select form-select-sm w-auto flex-grow-0',
'aria-labelledby' => 'permission_header' =%>
% } elsif (my $roleName = (grep { $ce->{userRoles}{$_} eq $value } keys %{ $ce->{userRoles} })[0]) {
<%= maketext($roleName) %>
% } else {
<%= maketext((grep { $ce->{userRoles}{$_} eq $value } keys %{ $ce->{userRoles} })[0] // "PermLevel$value") %>
<%= maketext('Unknown: [_1]', $value) %>
% }
% } elsif ($properties->{type} eq 'password') {
% # Note that this is only called if in editMode.
Expand Down

0 comments on commit 7347812

Please sign in to comment.