Patch for path.module in Drupal 4.7.0 beta 4
You might notice that you are unable to delete url aliases in Drupal. I don"t know the exact version that this problem exists. Anyway, I have patched it right now.
diff -u path.module.orig path.module
--- path.module.orig 2005-12-19 21:51:38.000000000 +0700
+++ path.module 2006-01-27 11:56:01.000000000 +0700
@@ -100,7 +100,7 @@
**/
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"]))),
Technorati Tags: Bug, English, Review, Drupal, Tips and Tricks, URL Alias, Path, Permission
- sugree's blog
- 845 reads
Post new comment