'User can\'t clear an empty placeholder if he does not have
change permissions on the Page model and/or does not have
global change permissions.'

def test_user_cant_clear_empty_placeholder(self):

    page = self._permissions_page
    staff_user = self.get_staff_user_with_no_permissions()
    placeholder = page.placeholders.get(slot='body')
    endpoint = self.get_clear_placeholder_url(placeholder)
    self.add_permission(staff_user, 'change_page')
    self.add_global_permission(staff_user, can_change=False)
    with self.login_user_context(staff_user):
        response = self.client.post(endpoint, {'test': 0})
        self.assertEqual(response.status_code, 403)
