mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)
60604: Merged V4.2-BUG-FIX (4.2.2) to HEAD-BUG-FIX (Cloud/4.3) 60461: MNT-9369 : Addition of the cm:versionable aspect through the Share UI sets the cm:autoVersionOnUpdateProp=true regardless of the aspect property being set to 'false' in the contentModel.xml Fixed the security context error. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@62337 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -273,10 +273,11 @@ public class ScriptNodeTest
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Test(expected=AccessDeniedException.class)
|
@Test(expected=AccessDeniedException.class)
|
||||||
@RunAsUser(userName=USER_TWO_NAME)
|
|
||||||
public void userTwoCannotAccessTestFile() throws Exception
|
public void userTwoCannotAccessTestFile() throws Exception
|
||||||
{
|
{
|
||||||
|
AuthenticationUtil.setFullyAuthenticatedUser(USER_TWO_NAME);
|
||||||
touchFileToTriggerPermissionCheck(USER_ONES_TEST_FILE);
|
touchFileToTriggerPermissionCheck(USER_ONES_TEST_FILE);
|
||||||
|
AuthenticationUtil.clearCurrentSecurityContext();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test public void userOneCanAccessTestFile() throws Exception
|
@Test public void userOneCanAccessTestFile() throws Exception
|
||||||
|
Reference in New Issue
Block a user