From b0691eac2113089716073121d795b5f600ff5916 Mon Sep 17 00:00:00 2001 From: hukl Date: Sun, 19 Apr 2009 14:05:56 +0200 Subject: fix for renamed method --- app/controllers/nodes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index aba132b..04eab1a 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb @@ -81,7 +81,7 @@ class NodesController < ApplicationController def unlock # TODO that actually has to be implemented in the model, once we have # permissions - if @node.user + if @node.lock_owner @node.unlock! flash[:notice] = "Node unlocked" else -- cgit v1.3