diff --git a/data/CRMEntity.php b/data/CRMEntity.php
old mode 100755
new mode 100644
index dc367763c29fcc503134f747be144af97133a4eb..045c34006f8a1be4316b16b5d23d8f2d7890eafc
--- a/data/CRMEntity.php
+++ b/data/CRMEntity.php
@@ -173,26 +173,17 @@ class CRMEntity {
 		} else {
 			$file_name = $file_details['name'];
 		}
-
-		// Check 1
-		$save_file = 'true';
-		//only images are allowed for Image Attachmenttype
-		$mimeType = vtlib_mime_content_type($file_details['tmp_name']);
-		$mimeTypeContents = explode('/', $mimeType);
-		// For contacts and products we are sending attachmentType as value
-		if ($attachmentType == 'Image' || ($file_details['size'] && $mimeTypeContents[0] == 'image')) {
-			$save_file = validateImageFile($file_details);
-		}
-		if ($save_file == 'false') {
-			return false;
-		}
-
-		// Check 2
-		$save_file = 'true';
-		//only images are allowed for these modules
-		if ($module == 'Contacts' || $module == 'Products') {
-			$save_file = validateImageFile($file_details);
-		}
+		$save_file = 'true'; 
+		//only images are allowed for Image Attachmenttype 
+		$mimeType = vtlib_mime_content_type($file_details['tmp_name']); 
+		$mimeTypeContents = explode('/', $mimeType); 
+		// For contacts and products we are sending attachmentType as value 
+		if ($attachmentType == 'Image' || ($file_details['size'] && $mimeTypeContents[0] == 'image')) { 
+				$save_file = validateImageFile($file_details); 
+		} 
+		if ($save_file == 'false') { 
+				return false; 
+		} 
 
 		$binFile = sanitizeUploadFileName($file_name, $upload_badext);