[Vtigercrm-commits] [vtiger-commits] r7548 - /vtigercrm/trunk/modules/Emails/mailsend.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Jun 26 12:52:28 EDT 2006


Author: richie
Date: Mon Jun 26 10:52:19 2006
New Revision: 7548

Log:
Security support for Emails done

Modified:
    vtigercrm/trunk/modules/Emails/mailsend.php

Modified: vtigercrm/trunk/modules/Emails/mailsend.php
==============================================================================
--- vtigercrm/trunk/modules/Emails/mailsend.php (original)
+++ vtigercrm/trunk/modules/Emails/mailsend.php Mon Jun 26 10:52:19 2006
@@ -146,7 +146,10 @@
 			if($emailadd != '')
 			{
 				$description = getMergedDescription($focus->column_fields['description'],$mycrmid,$pmodule);
-				$mail_status = send_mail('Emails',$emailadd,$current_user->user_name,'',$focus->column_fields['subject'],$description,'','','all',$focus->id);
+				if(isPermitted($pmodule,'DetailView',$mycrmid) == 'yes')
+				{
+					$mail_status = send_mail('Emails',$emailadd,$current_user->user_name,'',$focus->column_fields['subject'],$description,'','','all',$focus->id);
+				}	
 
 				$all_to_emailids []= $emailadd;
 				$mail_status_str .= $emailadd."=".$mail_status."&&&";





More information about the vtigercrm-commits mailing list