[Vtigercrm-commits] [vtiger-commits] r11067 - in /vtigercrm/branches/5.0.3/modules/Webmails: ListView.php Webmails.js
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat May 26 11:54:44 EDT 2007
Author: richie
Date: Sat May 26 09:54:40 2007
New Revision: 11067
Log:
fixed issue - Hiding the qualify button in webmail for the user not having EditView permission in Contacts module -Sri
Modified:
vtigercrm/branches/5.0.3/modules/Webmails/ListView.php
vtigercrm/branches/5.0.3/modules/Webmails/Webmails.js
Modified: vtigercrm/branches/5.0.3/modules/Webmails/ListView.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/ListView.php (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/ListView.php Sat May 26 09:54:40 2007
@@ -254,7 +254,10 @@
}
}
}
-
+if(isPermitted('Contacts','EditView','') == 'yes')
+ $show_qualify = "yes";
+else
+ $show_qualify = "no";
$overview=$elist["overview"];
?>
<!-- MAIN MSG LIST TABLE -->
@@ -265,6 +268,7 @@
var msgCount = "<?php echo $numEmails;?>";
var start = "<?php echo $_REQUEST['start'];?>";
var gselected_mail = '';
+var showQualify = "<?php echo $show_qualify;?>";
<?php
$mails = array();
if (is_array($overview))
Modified: vtigercrm/branches/5.0.3/modules/Webmails/Webmails.js
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Webmails/Webmails.js (original)
+++ vtigercrm/branches/5.0.3/modules/Webmails/Webmails.js Sat May 26 09:54:40 2007
@@ -79,7 +79,8 @@
$("forward_button").appendChild(Builder.node('input',{type: 'button', name: 'forward', value: ' Forward ', className: 'buttonok', onclick: 'OpenComposer('+mid+',\'forward\')'}));
$("qualify_button").removeChild($("qualify_button").firstChild);
- $("qualify_button").appendChild(Builder.node('input',{type: 'button', name: 'Qualify2', value: ' Qualify ', className: 'buttonok', onclick: 'showRelationships('+mid+')'}));
+ if(showQualify == 'yes')
+ $("qualify_button").appendChild(Builder.node('input',{type: 'button', name: 'Qualify2', value: ' Qualify ', className: 'buttonok', onclick: 'showRelationships('+mid+')'}));
$("download_attach_button").removeChild($("download_attach_button").firstChild);
$("download_attach_button").appendChild(Builder.node('input',{type: 'button', name: 'download', value: ' Download Attachments ', className: 'buttonok', onclick: 'displayAttachments('+mid+')'}));
More information about the vtigercrm-commits
mailing list