Add privileges export to per database listing

Fixes #13576

Signed-off-by: Michal Čihař <michal@cihar.com>
This commit is contained in:
Michal Čihař 2017-08-28 15:46:44 +02:00
parent ce1b3fca2f
commit d652d31a5d
2 changed files with 21 additions and 1 deletions

View File

@ -33,6 +33,7 @@ phpMyAdmin - ChangeLog
- issue #13408 Show MySQL warnings when executing SQL queries
- issue #5827 Allow Designer to show tables from other databases
- issue #13268 Replace Query-By-Example with multi-table query generator interface
- issue #13576 Add privileges export to per database listing
4.7.5 (not yet released)
- issue #13615 Avoid problems with browsing unknown query types

View File

@ -2323,6 +2323,16 @@ class Privileges
);
}
$html_output .= '</td>';
$html_output .= '<td>';
$html_output .= self::getUserLink(
'export',
$current_user,
$current_host,
$specific_db,
$specific_table,
$routine
);
$html_output .= '</td>';
$html_output .= '</tr>';
@ -2548,7 +2558,7 @@ class Privileges
. '<th>' . __('Type') . '</th>'
. '<th>' . __('Privileges') . '</th>'
. '<th>' . __('Grant') . '</th>'
. '<th>' . __('Action') . '</th>'
. '<th colspan="2">' . __('Action') . '</th>'
. '</tr>'
. '</thead>';
}
@ -2741,6 +2751,15 @@ class Privileges
);
}
$html_output .= '</td>';
$html_output .= '<td class="center">'
. self::getUserLink(
'export',
$current_user,
$current_host,
$specific_db,
$specific_table
)
. '</td>';
$html_output .= '</tr>';
if (($i + 1) < $nbPrivileges) {