Update app/controllers/dmsf_upload_controller.rb

Updated to correct file unlock; although functionality for permissions needs to be moved from model however.
This commit is contained in:
Daniel Munn 2012-08-28 10:00:17 +02:00
parent 93284f0ee6
commit c253c04bfc

View File

@ -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