Commit 025e733b authored by Gábor Hojtsy's avatar Gábor Hojtsy

#216404 by Rob Loach: path_nodeapi() only worked for users with permissions,...

#216404 by Rob Loach: path_nodeapi() only worked for users with permissions, although node loading requires the path to be loaded
parent aabdbbdf
......@@ -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':
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment