--- simplenews_scheduler.module.original	2009-06-06 21:02:20.000000000 +0200
+++ simplenews_scheduler.module	2009-08-19 15:24:58.000000000 +0200
@@ -186,9 +186,15 @@ function simplenews_scheduler_cron() {
 
 function simplenews_scheduler_new_edition($sched_nid) {
 	watchdog('simplenews_scheduler', t('Creating a fresh newsletter edition'));
+  // Store the current user to be able to switch back later.
+  simplenews_switch_user();
 	$node = node_load(array('nid'=>$sched_nid));
+  // Switch user to the node author to use the correct permissions.
+  simplenews_switch_user($node->uid);
 	$node = node_build_content($node, FALSE, FALSE);
 	$content = drupal_render($node->content);
+  // Switch back to the original user.
+  simplenews_switch_user();
 
 	// @todo: how the hell do you save taxonomy correctly/better?
 	$tids = array();
@@ -200,13 +206,14 @@ function simplenews_scheduler_new_editio
 
 	// now save it as a new node
 	unset($node->nid);
+	unset($node->created);
 
 	// append title
 	$edition_no = simplenews_scheduler_get_edition_number($sched_nid)+1;
 	$node->title = theme('simplenews_scheduler_title',$node->title, $edition_no);
 
 	// output format for all newly created items should just be Full HTML, incase of views output etc
-	if ($format_id=db_result(db_query('SELECT format FROM {filter_formats} WHERE name like "full html"')) ) {
+	if ($format_id=db_result(db_query('SELECT format FROM {filter_formats} WHERE name like "ansichten-einbettung"')) ) {
 		$node->format=$format_id;
 	}
 
