#51602, Mis-typed user_access() in delete-confirm, patch by njivy

4.7.x
Gerhard Killesreiter 2006-02-27 19:27:20 +00:00
parent b7e81dbc39
commit 951ed45e27
2 changed files with 2 additions and 2 deletions

View File

@ -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']))),

View File

@ -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']))),