'User cant copy a placeholder to the clipboard if he does not
have add permissions on the plugin models being copied.'

def test_user_cant_copy_placeholder_to_clipboard(self):

    staff_user = self._staff_user
    source_placeholder = self._obj.placeholder
    endpoint = self.get_copy_placeholder_uri(source_placeholder, container=Example1)
    self._add_plugin_to_placeholder(source_placeholder, 'StylePlugin')
    self._add_plugin_to_placeholder(source_placeholder, 'LinkPlugin')
    user_settings = UserSettings.objects.create(language='en', user=staff_user, clipboard=Placeholder.objects.create())
    self.add_permission(staff_user, 'change_link')
    self.add_permission(staff_user, 'delete_link')
    self.add_permission(staff_user, 'change_style')
    self.add_permission(staff_user, 'delete_style')
    data = {'source_plugin_id': '', 'source_placeholder_id': source_placeholder.pk, 'source_language': 'en', 'target_language': 'en', 'target_placeholder_id': user_settings.clipboard.pk}
    with self.login_user_context(staff_user):
        response = self.client.post(endpoint, data)
    self.assertEqual(response.status_code, 403)
    clipboard_plugins = user_settings.clipboard.get_plugins()
    self.assertEqual(len(clipboard_plugins), 0)
