From c253c04bfc77829523ddf4c8d0ad08b5898f145a Mon Sep 17 00:00:00 2001 From: Daniel Munn Date: Tue, 28 Aug 2012 10:00:17 +0200 Subject: [PATCH] Update app/controllers/dmsf_upload_controller.rb Updated to correct file unlock; although functionality for permissions needs to be moved from model however. --- app/controllers/dmsf_upload_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/dmsf_upload_controller.rb b/app/controllers/dmsf_upload_controller.rb index 28c9bdb9..27e40fe4 100644 --- a/app/controllers/dmsf_upload_controller.rb +++ b/app/controllers/dmsf_upload_controller.rb @@ -133,7 +133,7 @@ class DmsfUploadController < ApplicationController end if file.locked? - DmsfFileLock.file_lock_state(file, false) + file.unlock! flash[:notice] = l(:notice_file_unlocked) end