diff options
| author | hukl <contact@smyck.org> | 2009-04-19 14:05:56 +0200 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2009-04-19 14:05:56 +0200 |
| commit | b0691eac2113089716073121d795b5f600ff5916 (patch) | |
| tree | 8903ceefaaf9f160ec8128ebd16717ef51839d80 /app | |
| parent | b93619b221d988d8b61db0f65432ab01be371c3c (diff) | |
fix for renamed method
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/nodes_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 | |||
| 81 | def unlock | 81 | def unlock |
| 82 | # TODO that actually has to be implemented in the model, once we have | 82 | # TODO that actually has to be implemented in the model, once we have |
| 83 | # permissions | 83 | # permissions |
| 84 | if @node.user | 84 | if @node.lock_owner |
| 85 | @node.unlock! | 85 | @node.unlock! |
| 86 | flash[:notice] = "Node unlocked" | 86 | flash[:notice] = "Node unlocked" |
| 87 | else | 87 | else |
