From 37cfb1780932c32666074124ec2f62cfbdcf9aca Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Thu, 30 Aug 2007 09:29:34 +0000 Subject: [PATCH] Merge commit 'git-svn' --- app/controllers/node_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/node_controller.rb b/app/controllers/node_controller.rb index 8bfe2a612..de81f188b 100644 --- a/app/controllers/node_controller.rb +++ b/app/controllers/node_controller.rb @@ -81,7 +81,7 @@ class NodeController < ApplicationController if node.visible if WayNode.find(:first, :joins => "INNER JOIN current_ways ON current_ways.id = current_way_nodes.id", :conditions => [ "current_ways.visible = 1 AND current_way_nodes.node_id = ?", node.id ]) render :nothing => true, :status => :precondition_failed - else if RelationMember.find(:first, :joins => "INNER JOIN current_relations ON current_relations.id=current_relation_members.id", :conditions => [ "visible = 1 AND member_type='node' and member_id=?", params[:id]]) + elsif RelationMember.find(:first, :joins => "INNER JOIN current_relations ON current_relations.id=current_relation_members.id", :conditions => [ "visible = 1 AND member_type='node' and member_id=?", params[:id]]) render :nothing => true, :status => :precondition_failed else node.user_id = @user.id -- 2.39.5