summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-02-27 19:27:20 +0000
committerGerhard Killesreiter <killes_www_drop_org@227.no-reply.drupal.org>2006-02-27 19:27:20 +0000
commit951ed45e276ae26a290db209a4e91a8b22193acd (patch)
tree5804165fbe1bd6fc3304aeaf8249c74e458df178
parentb7e81dbc39881c174988d28fbc18b0460367d936 (diff)
downloadbrdo-951ed45e276ae26a290db209a4e91a8b22193acd.tar.gz
brdo-951ed45e276ae26a290db209a4e91a8b22193acd.tar.bz2
#51602, Mis-typed user_access() in delete-confirm, patch by njivy
-rw-r--r--modules/path.module2
-rw-r--r--modules/path/path.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/path.module b/modules/path.module
index ca8cf7612..cce40f470 100644
--- a/modules/path.module
+++ b/modules/path.module
@@ -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']))),
diff --git a/modules/path/path.module b/modules/path/path.module
index ca8cf7612..cce40f470 100644
--- a/modules/path/path.module
+++ b/modules/path/path.module
@@ -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']))),