#51602, Mis-typed user_access() in delete-confirm, patch by njivy
parent
b7e81dbc39
commit
951ed45e27
|
@ -100,7 +100,7 @@ function path_admin_edit($pid = 0) {
|
|||
**/
|
||||
function path_admin_delete_confirm($pid) {
|
||||
$path = path_load($pid);
|
||||
if (user_access('administer path aliases')) {
|
||||
if (user_access('administer url aliases')) {
|
||||
$form['pid'] = array('#type' => 'value', '#value' => $pid);
|
||||
$output = confirm_form('path_admin_delete_confirm', $form,
|
||||
t('Are you sure you want to delete path alias %title?', array('%title' => theme('placeholder', $path['dst']))),
|
||||
|
|
|
@ -100,7 +100,7 @@ function path_admin_edit($pid = 0) {
|
|||
**/
|
||||
function path_admin_delete_confirm($pid) {
|
||||
$path = path_load($pid);
|
||||
if (user_access('administer path aliases')) {
|
||||
if (user_access('administer url aliases')) {
|
||||
$form['pid'] = array('#type' => 'value', '#value' => $pid);
|
||||
$output = confirm_form('path_admin_delete_confirm', $form,
|
||||
t('Are you sure you want to delete path alias %title?', array('%title' => theme('placeholder', $path['dst']))),
|
||||
|
|
Loading…
Reference in New Issue