[Vtigercrm-commits] [vtiger-commits] r6672 - in /vtigercrm/trunk/modules: Accounts/ Activities/ Campaigns/ Contacts/ HelpDesk/ Invoice/ Potentials/ PurchaseOrder/ Quotes/ SalesOrder/
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon May 29 07:18:43 EDT 2006
Author: saraj
Date: Mon May 29 05:18:30 2006
New Revision: 6672
Log:
Updated module level security for change owner button - ahmed
Modified:
vtigercrm/trunk/modules/Accounts/ListView.php
vtigercrm/trunk/modules/Activities/ListView.php
vtigercrm/trunk/modules/Campaigns/ListView.php
vtigercrm/trunk/modules/Contacts/ListView.php
vtigercrm/trunk/modules/HelpDesk/ListView.php
vtigercrm/trunk/modules/Invoice/ListView.php
vtigercrm/trunk/modules/Potentials/ListView.php
vtigercrm/trunk/modules/PurchaseOrder/ListView.php
vtigercrm/trunk/modules/Quotes/ListView.php
vtigercrm/trunk/modules/SalesOrder/ListView.php
Modified: vtigercrm/trunk/modules/Accounts/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Accounts/ListView.php (original)
+++ vtigercrm/trunk/modules/Accounts/ListView.php Mon May 29 05:18:30 2006
@@ -96,6 +96,10 @@
{
$other_text['del'] = $app_strings[LBL_MASS_DELETE];
}
+if(isPermitted('Accounts','EditView','') == 'yes')
+{
+ $other_text['c_owner'] = $app_strings[LBL_CHANGE_OWNER];
+}
if(isPermitted('Emails','EditView','') == 'yes')
{
$other_text['s_mail'] = $app_strings[LBL_SEND_MAIL_BUTTON];
Modified: vtigercrm/trunk/modules/Activities/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Activities/ListView.php (original)
+++ vtigercrm/trunk/modules/Activities/ListView.php Mon May 29 05:18:30 2006
@@ -100,6 +100,10 @@
{
$other_text['del'] = $app_strings[LBL_MASS_DELETE];
}
+if(isPermitted('Activities','EditView','') == 'yes')
+{
+ $other_text['c_owner'] = $app_strings[LBL_CHANGE_OWNER];
+}
global $task_title;
$title_display = $current_module_strings['LBL_LIST_FORM_TITLE'];
if ($task_title) $title_display= $task_title;
Modified: vtigercrm/trunk/modules/Campaigns/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Campaigns/ListView.php (original)
+++ vtigercrm/trunk/modules/Campaigns/ListView.php Mon May 29 05:18:30 2006
@@ -93,7 +93,10 @@
{
$other_text ['del']=$app_strings[LBL_MASS_DELETE];
}
-
+if(isPermitted('Campaigns','EditView','') == 'yes')
+{
+ $other_text['c_owner'] = $app_strings[LBL_CHANGE_OWNER];
+}
if($viewnamedesc['viewname'] == 'All')
{
$smarty->assign("ALL", 'All');
Modified: vtigercrm/trunk/modules/Contacts/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Contacts/ListView.php (original)
+++ vtigercrm/trunk/modules/Contacts/ListView.php Mon May 29 05:18:30 2006
@@ -121,6 +121,10 @@
{
$other_text['del'] = $app_strings[LBL_MASS_DELETE];
}
+if(isPermitted('Contacts','EditView','') == 'yes')
+{
+ $other_text['c_owner'] = $app_strings[LBL_CHANGE_OWNER];
+}
if(isPermitted('Emails','EditView','') == 'yes')
$other_text['s_mail'] = $app_strings[LBL_SEND_MAIL_BUTTON];
Modified: vtigercrm/trunk/modules/HelpDesk/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/HelpDesk/ListView.php (original)
+++ vtigercrm/trunk/modules/HelpDesk/ListView.php Mon May 29 05:18:30 2006
@@ -93,7 +93,10 @@
// Buttons and View options
if(isPermitted('HelpDesk','Delete','') == 'yes')
$other_text['del'] = $app_strings[LBL_MASS_DELETE];
-
+if(isPermitted('HelpDesk','EditView','') == 'yes')
+{
+ $other_text['c_owner'] = $app_strings[LBL_CHANGE_OWNER];
+}
if($viewnamedesc['viewname'] == 'All')
{
$smarty->assign("ALL", 'All');
Modified: vtigercrm/trunk/modules/Invoice/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Invoice/ListView.php (original)
+++ vtigercrm/trunk/modules/Invoice/ListView.php Mon May 29 05:18:30 2006
@@ -90,6 +90,10 @@
{
$other_text['del'] = $app_strings[LBL_MASS_DELETE];
}
+if(isPermitted('Invoice','EditView','') == 'yes')
+{
+ $other_text['c_owner'] = $app_strings[LBL_CHANGE_OWNER];
+}
if($viewnamedesc['viewname'] == 'All')
{
Modified: vtigercrm/trunk/modules/Potentials/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Potentials/ListView.php (original)
+++ vtigercrm/trunk/modules/Potentials/ListView.php Mon May 29 05:18:30 2006
@@ -117,6 +117,10 @@
{
$other_text['del'] = $app_strings[LBL_MASS_DELETE];
}
+if(isPermitted('Potentials','EditView','') == 'yes')
+{
+ $other_text['c_owner'] = $app_strings[LBL_CHANGE_OWNER];
+}
if($viewnamedesc['viewname'] == 'All')
{
Modified: vtigercrm/trunk/modules/PurchaseOrder/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/PurchaseOrder/ListView.php (original)
+++ vtigercrm/trunk/modules/PurchaseOrder/ListView.php Mon May 29 05:18:30 2006
@@ -90,7 +90,10 @@
{
$other_text['del'] = $app_strings[LBL_MASS_DELETE];
}
-
+if(isPermitted('PurchaseOrder','EditView','') == 'yes')
+{
+ $other_text['c_owner'] = $app_strings[LBL_CHANGE_OWNER];
+}
if($viewnamedesc['viewname'] == 'All')
{
$smarty->assign("ALL", 'All');
Modified: vtigercrm/trunk/modules/Quotes/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/Quotes/ListView.php (original)
+++ vtigercrm/trunk/modules/Quotes/ListView.php Mon May 29 05:18:30 2006
@@ -91,7 +91,10 @@
{
$other_text['del'] = $app_strings[LBL_MASS_DELETE];
}
-
+if(isPermitted('Quotes','EditView','') == 'yes')
+{
+ $other_text['c_owner'] = $app_strings[LBL_CHANGE_OWNER];
+}
if($viewnamedesc['viewname'] == 'All')
{
$smarty->assign("ALL", 'All');
Modified: vtigercrm/trunk/modules/SalesOrder/ListView.php
==============================================================================
--- vtigercrm/trunk/modules/SalesOrder/ListView.php (original)
+++ vtigercrm/trunk/modules/SalesOrder/ListView.php Mon May 29 05:18:30 2006
@@ -90,7 +90,10 @@
{
$other_text['del'] = $app_strings[LBL_MASS_DELETE];
}
-
+if(isPermitted('SalesOrder','EditView','') == 'yes')
+{
+ $other_text['c_owner'] = $app_strings[LBL_CHANGE_OWNER];
+}
if($viewnamedesc['viewname'] == 'All')
{
$smarty->assign("ALL", 'All');
More information about the vtigercrm-commits
mailing list