From 025e733b2c68e4176db718380264b10d4caba955 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A1bor=20Hojtsy?= Date: Sun, 3 Feb 2008 19:20:35 +0000 Subject: #216404 by Rob Loach: path_nodeapi() only worked for users with permissions, although node loading requires the path to be loaded --- modules/path/path.module | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/path/path.module') diff --git a/modules/path/path.module b/modules/path/path.module index 273f32923..87bd6cdfe 100644 --- a/modules/path/path.module +++ b/modules/path/path.module @@ -130,7 +130,8 @@ function path_set_alias($path = NULL, $alias = NULL, $pid = NULL, $language = '' * than through the administrative interface. */ function path_nodeapi(&$node, $op, $arg) { - if (user_access('create url aliases') || user_access('administer url aliases')) { + // Permissions are required for everything except node loading. + if (user_access('create url aliases') || user_access('administer url aliases') || ($op == 'load')) { $language = isset($node->language) ? $node->language : ''; switch ($op) { case 'validate': -- cgit v1.2.3