Commit 92a594cb authored by drumm's avatar drumm
Browse files

Revert "Fix notice when previewing a new release node"

This reverts commit b1f74b98.

In some cases, this caused an infinite loop on node edit, with
project_release_get_release_project_nid() calling menu_get_item().
parent 2d334ba0
......@@ -116,7 +116,7 @@ function project_release_node_access($node, $op, $account) {
case 'update':
// Check for 'administer releases' project access.
return project_user_access(project_release_get_release_project_nid($node), 'administer releases') ? NODE_ACCESS_ALLOW : NODE_ACCESS_IGNORE;
return project_user_access($node->field_release_project[LANGUAGE_NONE][0]['target_id'], 'administer releases') ? NODE_ACCESS_ALLOW : NODE_ACCESS_IGNORE;
case 'delete':
// No one should ever delete a release node, only unpublish it.
Supports Markdown
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