Updated code based on Jocelyn suggestions.

This commit is contained in:
jvelilla
2015-05-15 09:40:18 -03:00
parent 9fbadac7ac
commit 1c59a65983
5 changed files with 18 additions and 18 deletions

View File

@@ -233,7 +233,7 @@ feature {NONE} -- Trash:Revert
attached node_api.node (l_id.integer_value) as l_node
then
if node_api.has_permission_for_action_on_node ("trash", l_node, current_user (req)) then
node_api.revert_node (l_node)
node_api.restore_node (l_node)
res.send (create {CMS_REDIRECTION_RESPONSE_MESSAGE}.make (req.absolute_script_url ("")))
else
send_access_denied (req, res)