Drupal path not available to anonymous users in view block
I created a view in drupal with some argument handling code. This code loaded the node so as to get the value of the path alias. I then used this path alias as a taxonomy argument for the view:
if ($type == 'block' && arg(0)=='node')
{
$node = node_load(arg(1));
$path = $node->path;
$args = array();
$args[0] = '';
if (!empty($path))
{
$args[0] = $path;
}
return $args;
}