diff --git a/libraries/classes/Server/Privileges.php b/libraries/classes/Server/Privileges.php index 7297638c64..bbf91b7e6f 100644 --- a/libraries/classes/Server/Privileges.php +++ b/libraries/classes/Server/Privileges.php @@ -429,6 +429,16 @@ class Privileges 'SHOW VIEW', __('Allows performing SHOW CREATE VIEW queries.') ), + array( + 'Delete_history_priv', + 'DELETE HISTORY', + $GLOBALS['strPrivDescDeleteHistoricalRows'] + ), + array( + 'Delete versioning rows_priv', + 'DELETE HISTORY', + $GLOBALS['strPrivDescDeleteHistoricalRows'] + ), array( 'Create_routine_priv', 'CREATE ROUTINE', @@ -1082,6 +1092,9 @@ class Privileges } elseif ($current_grant == 'Show view_priv') { $tmp_current_grant = 'ShowView_priv'; $current_grant = 'Show_view_priv'; + } elseif ($current_grant == 'Delete versioning rows_priv') { + $tmp_current_grant = 'DeleteHistoricalRows_priv'; + $current_grant = 'Delete_history_priv'; } else { $tmp_current_grant = $current_grant; } diff --git a/server_privileges.php b/server_privileges.php index 2d5bf64427..a0fcc00dc9 100644 --- a/server_privileges.php +++ b/server_privileges.php @@ -71,6 +71,7 @@ $strPrivDescCreateTmpTable = __('Allows creating temporary tables.'); $strPrivDescCreateUser = __('Allows creating, dropping and renaming user accounts.'); $strPrivDescCreateView = __('Allows creating new views.'); $strPrivDescDelete = __('Allows deleting data.'); +$strPrivDescDeleteHistoricalRows = __('Allows deleting historical rows.'); $strPrivDescDropDb = __('Allows dropping databases and tables.'); $strPrivDescDropTbl = __('Allows dropping tables.'); $strPrivDescEvent = __('Allows to set up events for the event scheduler.');