summaryrefslogtreecommitdiff
path: root/modules/path/path.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/path/path.module')
-rw-r--r--modules/path/path.module3
1 files changed, 2 insertions, 1 deletions
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':