diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/nodes_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/nodes_controller.rb b/app/controllers/nodes_controller.rb index b56d779..d8586e2 100644 --- a/app/controllers/nodes_controller.rb +++ b/app/controllers/nodes_controller.rb | |||
| @@ -112,6 +112,7 @@ class NodesController < ApplicationController | |||
| 112 | end | 112 | end |
| 113 | 113 | ||
| 114 | def revert | 114 | def revert |
| 115 | @node.lock_for_editing!(current_user) | ||
| 115 | @node.revert!(current_user) | 116 | @node.revert!(current_user) |
| 116 | if @node.draft | 117 | if @node.draft |
| 117 | redirect_to edit_node_path(@node) | 118 | redirect_to edit_node_path(@node) |
