diff --git a/src/plone/restapi/tests/http-examples/groups.resp b/src/plone/restapi/tests/http-examples/groups.resp index a69eaef559..e8035cd5f0 100644 --- a/src/plone/restapi/tests/http-examples/groups.resp +++ b/src/plone/restapi/tests/http-examples/groups.resp @@ -4,6 +4,7 @@ Content-Type: application/json [ { "@id": "http://localhost:55001/plone/@groups/Administrators", + "can_delete": true, "description": "", "email": "", "groupname": "Administrators", @@ -21,6 +22,7 @@ Content-Type: application/json }, { "@id": "http://localhost:55001/plone/@groups/Reviewers", + "can_delete": true, "description": "", "email": "", "groupname": "Reviewers", @@ -38,6 +40,7 @@ Content-Type: application/json }, { "@id": "http://localhost:55001/plone/@groups/Site Administrators", + "can_delete": true, "description": "", "email": "", "groupname": "Site Administrators", @@ -55,6 +58,7 @@ Content-Type: application/json }, { "@id": "http://localhost:55001/plone/@groups/ploneteam", + "can_delete": true, "description": "We are Plone", "email": "ploneteam@plone.org", "groupname": "ploneteam", @@ -73,6 +77,7 @@ Content-Type: application/json }, { "@id": "http://localhost:55001/plone/@groups/AuthenticatedUsers", + "can_delete": true, "description": "Automatic Group Provider", "email": "", "groupname": "AuthenticatedUsers", diff --git a/src/plone/restapi/tests/http-examples/groups_filtered_by_groupname.resp b/src/plone/restapi/tests/http-examples/groups_filtered_by_groupname.resp index eaa2f96734..f13e01a4ce 100644 --- a/src/plone/restapi/tests/http-examples/groups_filtered_by_groupname.resp +++ b/src/plone/restapi/tests/http-examples/groups_filtered_by_groupname.resp @@ -4,6 +4,7 @@ Content-Type: application/json [ { "@id": "http://localhost:55001/plone/@groups/ploneteam", + "can_delete": true, "description": "We are Plone", "email": "ploneteam@plone.org", "groupname": "ploneteam", diff --git a/src/plone/restapi/tests/http-examples/groups_get.resp b/src/plone/restapi/tests/http-examples/groups_get.resp index d4b132c675..e18189a8b9 100644 --- a/src/plone/restapi/tests/http-examples/groups_get.resp +++ b/src/plone/restapi/tests/http-examples/groups_get.resp @@ -3,6 +3,7 @@ Content-Type: application/json { "@id": "http://localhost:55001/plone/@groups/ploneteam", + "can_delete": true, "description": "We are Plone", "email": "ploneteam@plone.org", "groupname": "ploneteam", diff --git a/src/plone/restapi/tests/http-examples/roles.resp b/src/plone/restapi/tests/http-examples/roles.resp index 7b282e9166..a9c4a2cd40 100644 --- a/src/plone/restapi/tests/http-examples/roles.resp +++ b/src/plone/restapi/tests/http-examples/roles.resp @@ -5,42 +5,56 @@ Content-Type: application/json { "@id": "http://localhost:55001/plone/@roles/Contributor", "@type": "role", + "can_assign": true, + "can_assign_add": true, "id": "Contributor", "title": "Contributor" }, { "@id": "http://localhost:55001/plone/@roles/Editor", "@type": "role", + "can_assign": true, + "can_assign_add": true, "id": "Editor", "title": "Editor" }, { "@id": "http://localhost:55001/plone/@roles/Member", "@type": "role", + "can_assign": true, + "can_assign_add": true, "id": "Member", "title": "Member" }, { "@id": "http://localhost:55001/plone/@roles/Reader", "@type": "role", + "can_assign": true, + "can_assign_add": true, "id": "Reader", "title": "Reader" }, { "@id": "http://localhost:55001/plone/@roles/Reviewer", "@type": "role", + "can_assign": true, + "can_assign_add": true, "id": "Reviewer", "title": "Reviewer" }, { "@id": "http://localhost:55001/plone/@roles/Site Administrator", "@type": "role", + "can_assign": true, + "can_assign_add": true, "id": "Site Administrator", "title": "Site Administrator" }, { "@id": "http://localhost:55001/plone/@roles/Manager", "@type": "role", + "can_assign": true, + "can_assign_add": true, "id": "Manager", "title": "Manager" } diff --git a/src/plone/restapi/tests/http-examples/users.resp b/src/plone/restapi/tests/http-examples/users.resp index a8e179eaff..6a24d1ef7c 100644 --- a/src/plone/restapi/tests/http-examples/users.resp +++ b/src/plone/restapi/tests/http-examples/users.resp @@ -4,6 +4,7 @@ Content-Type: application/json [ { "@id": "http://localhost:55001/plone/@users/admin", + "can_delete": true, "description": "This is an admin user", "email": "admin@example.com", "fullname": "Administrator", @@ -28,6 +29,7 @@ Content-Type: application/json }, { "@id": "http://localhost:55001/plone/@users/test_user_1_", + "can_delete": true, "description": "This is a test user", "email": "test@example.com", "fullname": "Test User", diff --git a/src/plone/restapi/tests/http-examples/users_authorized_get.resp b/src/plone/restapi/tests/http-examples/users_authorized_get.resp index db93e3c59e..0e037c2375 100644 --- a/src/plone/restapi/tests/http-examples/users_authorized_get.resp +++ b/src/plone/restapi/tests/http-examples/users_authorized_get.resp @@ -3,6 +3,7 @@ Content-Type: application/json { "@id": "http://localhost:55001/plone/@users/noam", + "can_delete": true, "description": "Professor of Linguistics", "email": "noam.chomsky@example.com", "fullname": "Noam Avram Chomsky", diff --git a/src/plone/restapi/tests/http-examples/users_filtered_by_groups.resp b/src/plone/restapi/tests/http-examples/users_filtered_by_groups.resp index 7ea2e78da5..623c183d65 100644 --- a/src/plone/restapi/tests/http-examples/users_filtered_by_groups.resp +++ b/src/plone/restapi/tests/http-examples/users_filtered_by_groups.resp @@ -4,6 +4,7 @@ Content-Type: application/json [ { "@id": "http://localhost:55001/plone/@users/noam", + "can_delete": true, "description": "Professor of Linguistics", "email": "noam.chomsky@example.com", "fullname": "Noam Avram Chomsky", diff --git a/src/plone/restapi/tests/http-examples/users_filtered_by_username.resp b/src/plone/restapi/tests/http-examples/users_filtered_by_username.resp index d69cc23645..4f52f47129 100644 --- a/src/plone/restapi/tests/http-examples/users_filtered_by_username.resp +++ b/src/plone/restapi/tests/http-examples/users_filtered_by_username.resp @@ -4,6 +4,7 @@ Content-Type: application/json [ { "@id": "http://localhost:55001/plone/@users/noam", + "can_delete": true, "description": "Professor of Linguistics", "email": "noam.chomsky@example.com", "fullname": "Noam Avram Chomsky", diff --git a/src/plone/restapi/tests/http-examples/users_get.resp b/src/plone/restapi/tests/http-examples/users_get.resp index db93e3c59e..0e037c2375 100644 --- a/src/plone/restapi/tests/http-examples/users_get.resp +++ b/src/plone/restapi/tests/http-examples/users_get.resp @@ -3,6 +3,7 @@ Content-Type: application/json { "@id": "http://localhost:55001/plone/@users/noam", + "can_delete": true, "description": "Professor of Linguistics", "email": "noam.chomsky@example.com", "fullname": "Noam Avram Chomsky", diff --git a/src/plone/restapi/tests/http-examples/users_searched.resp b/src/plone/restapi/tests/http-examples/users_searched.resp index a7d26d8346..79895fd699 100644 --- a/src/plone/restapi/tests/http-examples/users_searched.resp +++ b/src/plone/restapi/tests/http-examples/users_searched.resp @@ -4,6 +4,7 @@ Content-Type: application/json [ { "@id": "http://localhost:55001/plone/@users/noam", + "can_delete": true, "description": "Professor of Linguistics", "email": "noam.chomsky@example.com", "fullname": "Noam Avram Chomsky", diff --git a/src/plone/restapi/tests/http-examples/users_update_portrait_get.resp b/src/plone/restapi/tests/http-examples/users_update_portrait_get.resp index 5da36fe6dd..6bb9bf2c9c 100644 --- a/src/plone/restapi/tests/http-examples/users_update_portrait_get.resp +++ b/src/plone/restapi/tests/http-examples/users_update_portrait_get.resp @@ -3,6 +3,7 @@ Content-Type: application/json { "@id": "http://localhost:55001/plone/@users/noam", + "can_delete": true, "description": null, "email": "noam.chomsky@example.com", "fullname": null,