From 93143fe5d6a607515154c133630c51a19f6d7cff Mon Sep 17 00:00:00 2001 From: Tom Page Date: Fri, 29 Apr 2016 10:07:04 +0100 Subject: [PATCH] RM-3345 Ensure the current user is not setting their own clearance. Also add unit tests for admin losing clearance and guest gaining clearance. --- .../test/util/MockAuthenticationUtilHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/test/util/MockAuthenticationUtilHelper.java b/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/test/util/MockAuthenticationUtilHelper.java index e7372e5585..5e5308307b 100644 --- a/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/test/util/MockAuthenticationUtilHelper.java +++ b/rm-community/rm-community-repo/unit-test/java/org/alfresco/module/org_alfresco_module_rm/test/util/MockAuthenticationUtilHelper.java @@ -99,5 +99,6 @@ public class MockAuthenticationUtilHelper when(mockAuthenticationUtil.getFullyAuthenticatedUser()).thenReturn(fullyAuthenticatedUser); when(mockAuthenticationUtil.getRunAsUser()).thenReturn(fullyAuthenticatedUser); when(mockAuthenticationUtil.getSystemUserName()).thenReturn("system"); + when(mockAuthenticationUtil.getGuestUserName()).thenReturn("guest"); } }