Skip to content
Snippets Groups Projects
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
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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']))),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment