tdf#101094 (7) OPTIONS: Remove resourceTypeForLocks before unlock

Not needed, unlock() checks if a lock is present first.
If present, it means that LOCK is available, inferring the presence of
UNLOCK availability.

Change-Id: I007c4b02b27e8a40f15721c0308c894ad6f482fd
Reviewed-on: https://gerrit.libreoffice.org/27660
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Giuseppe Castagno <giuseppe.castagno@acca-esse.eu>
This commit is contained in:
Giuseppe Castagno
2016-01-14 18:11:28 +01:00
parent f9a56767c6
commit fd586445a4

View File

@@ -614,8 +614,9 @@ uno::Any SAL_CALL Content::execute(
{
// unlock
if ( resourceTypeForLocks( Environment ) == DAV )
unlock( Environment );
// do not check for a DAV resource
// the lock store will be checked before sending
unlock( Environment );
}
else if ( aCommand.Name == "createNewContent" && isFolder( Environment ) )
{