mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-14 17:58:59 +00:00
Merged 5.2.N (5.2.1) to HEAD (5.2)
132475 cturlica: REPO-894: Disable Person - updated so we receive an error when trying to disable an admin authority git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@132669 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -645,6 +645,17 @@ public class TestPeople extends EnterpriseTestApi
|
||||
assertEquals(enabled, updatedPerson.isEnabled());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUpdatePersonDisableAdminNotAllowed() throws PublicApiException
|
||||
{
|
||||
publicApiClient.setRequestContext(new RequestContext(account3.getId(), account3Admin, "admin"));
|
||||
|
||||
Map<String, String> params = new HashMap<>();
|
||||
params.put("fields", "enabled");
|
||||
|
||||
people.update("people", account3Admin, null, null, "{\n" + " \"enabled\": \"" + false + "\"\n" + "}", params, "Expected 403 response when updating " + account3Admin, 403);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUpdatePersonPasswordNonAdminNotAllowed() throws PublicApiException
|
||||
{
|
||||
|
Reference in New Issue
Block a user