Fixed wrong permission check for "Drop Routine" action

This commit is contained in:
Rouslan Placella 2011-08-16 12:36:38 +01:00
parent 39b0f4d34b
commit 4e4456e9b8

View File

@ -183,7 +183,7 @@ function PMA_RTN_getRowForList($routine, $rowclass = '')
. '">' . $titles['Export'] . "</a>\n";
$retval .= " </td>\n";
$retval .= " <td>\n";
if (PMA_currentUserHasPrivilege('EVENT', $db)) {
if (PMA_currentUserHasPrivilege('ALTER ROUTINE', $db)) {
$retval .= ' <a ' . $ajax_class['drop']
. ' href="sql.php?'
. $url_query