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:
parent
93284f0ee6
commit
c253c04bfc
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user