Also show the Drop link in the routines list (because it's difficult to detect all privileges possibilities
Signed-off-by: Marc Delisle <marc@infomarc.info>
This commit is contained in:
parent
ce72213095
commit
e2ed16d04e
@ -211,17 +211,13 @@ function PMA_RTN_getRowForList($routine, $rowclass = '')
|
||||
. '">' . $titles['Export'] . "</a>\n";
|
||||
$retval .= " </td>\n";
|
||||
$retval .= " <td>\n";
|
||||
if (PMA_Util::currentUserHasPrivilege('ALTER ROUTINE', $db)) {
|
||||
$retval .= ' <a ' . $ajax_class['drop']
|
||||
$retval .= ' <a ' . $ajax_class['drop']
|
||||
. ' href="sql.php?'
|
||||
. $url_query
|
||||
. '&sql_query=' . urlencode($sql_drop)
|
||||
. '&goto=db_routines.php'
|
||||
. urlencode("?db={$db}")
|
||||
. '" >' . $titles['Drop'] . "</a>\n";
|
||||
} else {
|
||||
$retval .= " {$titles['NoDrop']}\n";
|
||||
}
|
||||
$retval .= " </td>\n";
|
||||
$retval .= " <td>\n";
|
||||
$retval .= " {$routine['ROUTINE_TYPE']}\n";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user