mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged DEV to HEAD (5.0)
85993 : ACE-2181 : Non-owner cannot execute cancel editing for content - Tests changes according to new lock store behavior 86133 : ACE-2181 : Non-owner cannot execute cancel editing for content - Added test case - attempt to unlock node by user who has ALL_PERMISSIONS git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@86239 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -919,7 +919,7 @@ public class LockServiceImplTest extends BaseSpringTest
|
||||
}
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
public void testUnlockNodeWithAdminUser()
|
||||
public void testUnlockNodeWithAdminUserAndAllPermissionsUser()
|
||||
{
|
||||
for (Lifetime lt : new Lifetime[]{Lifetime.EPHEMERAL, Lifetime.PERSISTENT})
|
||||
{
|
||||
@@ -955,6 +955,12 @@ public class LockServiceImplTest extends BaseSpringTest
|
||||
this.securedLockService.lock(testNode, LockType.WRITE_LOCK, 2 * 86400, lt, null);
|
||||
this.securedLockService.unlock(testNode);
|
||||
|
||||
this.securedLockService.lock(testNode, LockType.WRITE_LOCK, 2 * 86400, lt, null);
|
||||
|
||||
// user who has ALL PERMISSIONS is able to unlock another's user lock
|
||||
TestWithUserUtils.authenticateUser(GOOD_USER_NAME, PWD, rootNodeRef, this.authenticationService);
|
||||
this.securedLockService.unlock(testNode);
|
||||
|
||||
this.nodeService.deleteNode(testNode);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user