Commit b1f74b98 authored by drumm's avatar drumm
Browse files

Fix notice when previewing a new release node

parent eeafac61
......@@ -116,7 +116,7 @@ function project_release_node_access($node, $op, $account) {
case 'update':
// Check for 'administer releases' project access.
return project_user_access($node->field_release_project[LANGUAGE_NONE][0]['target_id'], 'administer releases') ? NODE_ACCESS_ALLOW : NODE_ACCESS_IGNORE;
return project_user_access(project_release_get_release_project_nid($node), '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