Skip to content

Commit

Permalink
Merge pull request #2660 from drgrice1/unknown-permission-levels
Browse files Browse the repository at this point in the history
Support for custom permission levels not in the userRoles hash (replacement of #2629)
  • Loading branch information
Alex-Jordan authored Feb 1, 2025
2 parents 3a18a63 + 7347812 commit 55983f1
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]) %>
<%= maketext('Unknown: [_1]', $value) %>
% }
% } elsif ($properties->{type} eq 'password') {
% # Note that this is only called if in editMode.
Expand Down

0 comments on commit 55983f1

Please sign in to comment.