Fix permissions check when moving a file to a different directory over webdav
Fix unit tests
Merge pull request #9123 from owncloud/webdav-move-permissions

Fix permissions check when moving a file to a different directory over webdav