--- privatemsg_ng.module.ori	Thu Sep 11 04:42:56 2008
+++ privatemsg_ng.module	Sat Jan 31 15:13:30 2009
@@ -293,10 +293,9 @@ function privatemsg_ng_form_alter($form_
 			
 			if (is_array($buddies) && !empty($buddies))
 			{
-			
-				foreach($buddies as $buddy)
+				foreach($buddies as $buddy_uid => $buddy_name)
 				{
-					$buddy_options[$buddy['uid']] = $buddy['name']; 
+					$buddy_options[$buddy_uid] = $buddy_name; 
 				}
 
 		  		$form['header']['recipient_buddies'] = array(
@@ -340,7 +339,7 @@ function privatemsg_ng_form_alter($form_
 		
 		
 		/* Upload field */
-		if (user_access('access send roles')) {
+		if (user_access('access file attach')) {
 			$form['header']['upload'] = array(
   				'#type' => 'file',
   				'#title' => t('Attach new file'),
