Commit 951ed45e authored by Gerhard Killesreiter's avatar Gerhard Killesreiter
Browse files

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

parent b7e81dbc
...@@ -100,7 +100,7 @@ function path_admin_edit($pid = 0) { ...@@ -100,7 +100,7 @@ function path_admin_edit($pid = 0) {
**/ **/
function path_admin_delete_confirm($pid) { function path_admin_delete_confirm($pid) {
$path = path_load($pid); $path = path_load($pid);
if (user_access('administer path aliases')) { if (user_access('administer url aliases')) {
$form['pid'] = array('#type' => 'value', '#value' => $pid); $form['pid'] = array('#type' => 'value', '#value' => $pid);
$output = confirm_form('path_admin_delete_confirm', $form, $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']))), 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) { ...@@ -100,7 +100,7 @@ function path_admin_edit($pid = 0) {
**/ **/
function path_admin_delete_confirm($pid) { function path_admin_delete_confirm($pid) {
$path = path_load($pid); $path = path_load($pid);
if (user_access('administer path aliases')) { if (user_access('administer url aliases')) {
$form['pid'] = array('#type' => 'value', '#value' => $pid); $form['pid'] = array('#type' => 'value', '#value' => $pid);
$output = confirm_form('path_admin_delete_confirm', $form, $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']))), t('Are you sure you want to delete path alias %title?', array('%title' => theme('placeholder', $path['dst']))),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment