RM-3345 Ensure the current user is not setting their own clearance.

Also add unit tests for admin losing clearance and guest gaining clearance.
This commit is contained in:
Tom Page
2016-04-29 10:07:04 +01:00
parent 37dc4c7b8c
commit 93143fe5d6

View File

@@ -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");
}
}