Skip to content

Commit

Permalink
Merge #19039 - Fix #19037 - Link to privilege on table or db without …
Browse files Browse the repository at this point in the history
…an existing grant

Pull-request: #19039
Fixes #19037

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Apr 27, 2024
2 parents de9a89e + 182f4eb commit 67c42ee
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/database/privileges/index.twig
Expand Up @@ -73,7 +73,7 @@
<a class="edit_user_anchor" href="{{ url('/server/privileges', {
'username': privilege.user,
'hostname': privilege.host,
'dbname': priv.database != '*' ? priv.database,
'dbname': priv.database != '*' ? priv.database : db,
'tablename': '',
'routinename': priv.routine ?? ''
}) }}">
Expand Down
4 changes: 2 additions & 2 deletions templates/table/privileges/index.twig
Expand Up @@ -77,8 +77,8 @@
<a class="edit_user_anchor" href="{{ url('/server/privileges', {
'username': privilege.user,
'hostname': privilege.host,
'dbname': priv.database != '*' ? priv.database,
'tablename': priv.table is defined and priv.table != '*' ? priv.table,
'dbname': priv.database != '*' ? priv.database : db,
'tablename': priv.table is defined and priv.table != '*' ? priv.table : table,
'routinename': priv.routine ?? ''
}) }}">
{{ get_icon('b_usredit', 'Edit privileges'|trans) }}
Expand Down

0 comments on commit 67c42ee

Please sign in to comment.