[Vtigercrm-commits] [vtiger-commits] r5438 - in /vtigercrm/trunk/modules/Contacts: DetailView.php ListView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 27 03:12:37 EDT 2006
Author: saraj
Date: Thu Apr 27 01:12:23 2006
New Revision: 5438
Log:
Added the Security Check for Buttons in List/Detail View of Contacts Module - Ahmed
Modified:
vtigercrm/trunk/modules/Contacts/DetailView.php
vtigercrm/trunk/modules/Contacts/ListView.php
Modified: vtigercrm/trunk/modules/Contacts/DetailView.php
==============================================================================
Binary files - no diff available.
Modified: vtigercrm/trunk/modules/Contacts/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Contacts/ListView.php (original)
+++ vtigercrm/trunk/modules/Contacts/ListView.php Thu Apr 27 01:12:23 2006
@@ -98,11 +98,12 @@
{
$CActionDtls = $oCustomView->getCustomActionDetails($viewid);
}
-if(isPermitted('Contacts',2,'') == 'yes')
+if(isPermitted('Contacts','Delete','') == 'yes')
{
$other_text['del'] = $app_strings[LBL_MASS_DELETE];
}
-$other_text['s_mail'] = $app_strings[LBL_SEND_MAIL_BUTTON];
+if(isPermitted('Emails','EditView','') == 'yes')
+ $other_text['s_mail'] = $app_strings[LBL_SEND_MAIL_BUTTON];
if(isset($CActionDtls))
{
More information about the vtigercrm-commits
mailing list