mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
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:
@@ -99,5 +99,6 @@ public class MockAuthenticationUtilHelper
|
|||||||
when(mockAuthenticationUtil.getFullyAuthenticatedUser()).thenReturn(fullyAuthenticatedUser);
|
when(mockAuthenticationUtil.getFullyAuthenticatedUser()).thenReturn(fullyAuthenticatedUser);
|
||||||
when(mockAuthenticationUtil.getRunAsUser()).thenReturn(fullyAuthenticatedUser);
|
when(mockAuthenticationUtil.getRunAsUser()).thenReturn(fullyAuthenticatedUser);
|
||||||
when(mockAuthenticationUtil.getSystemUserName()).thenReturn("system");
|
when(mockAuthenticationUtil.getSystemUserName()).thenReturn("system");
|
||||||
|
when(mockAuthenticationUtil.getGuestUserName()).thenReturn("guest");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user