mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
ALF-8583 - Lock Service always returns LOCK_OWNER for Owner.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@28828 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -427,7 +427,7 @@ public class LockServiceImpl implements LockService,
|
||||
{
|
||||
// Get the current lock owner
|
||||
String currentUserRef = (String) this.nodeService.getProperty(nodeRef, ContentModel.PROP_LOCK_OWNER);
|
||||
String owner = ownableService.getOwner(nodeRef);
|
||||
|
||||
if (currentUserRef != null)
|
||||
{
|
||||
Date expiryDate = (Date)this.nodeService.getProperty(nodeRef, ContentModel.PROP_EXPIRY_DATE);
|
||||
@@ -442,17 +442,12 @@ public class LockServiceImpl implements LockService,
|
||||
{
|
||||
result = LockStatus.LOCK_OWNER;
|
||||
}
|
||||
else if ((owner != null) && owner.equals(userName))
|
||||
{
|
||||
result = LockStatus.LOCK_OWNER;
|
||||
}
|
||||
else
|
||||
{
|
||||
result = LockStatus.LOCKED;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
return result;
|
||||
|
||||
|
Reference in New Issue
Block a user