Can't move file via WebDav #372

This commit is contained in:
Karel Pičman 2015-03-31 14:55:21 +02:00
parent 598b1a9457
commit a9512306d1

View File

@ -1,7 +1,9 @@
# encoding: utf-8
#
# Redmine plugin for Document Management System "Features"
#
# Copyright (C) 2012 Daniel Munn <dan.munn@munnster.co.uk>
# Copyright (C) 2011-14 Karel Picman <karel.picman@kontron.com>
# Copyright (C) 2011-15 Karel Pičman <karel.picman@kontron.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@ -579,7 +581,7 @@ module RedmineDmsf
if @request.env['HTTP_RANGE'].nil?
access = DmsfFileRevisionAccess.new
access.user = User.current
access.revision = file.revision
access.revision = file.last_revision
access.action = DmsfFileRevisionAccess::DownloadAction
access.save!
end