[Vtigercrm-commits] [vtiger-commits] r7940 - in /vtigercrm/trunk: Smarty/templates/UserDetailView.tpl modules/Users/DetailView.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Jul 10 09:11:00 EDT 2006
Author: saraj
Date: Mon Jul 10 07:10:55 2006
New Revision: 7940
Log:
Check for admin user while viewing audit trail - ahmed
Modified:
vtigercrm/trunk/Smarty/templates/UserDetailView.tpl
vtigercrm/trunk/modules/Users/DetailView.php
Modified: vtigercrm/trunk/Smarty/templates/UserDetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/UserDetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/UserDetailView.tpl Mon Jul 10 07:10:55 2006
@@ -79,7 +79,9 @@
<tr><td colspan="2"> </td></tr>
<tr>
<td rowspan="2" nowrap align="right">
+ {if $IS_ADMIN eq 'true'}
<input type="button" onclick="showAuditTrail();" value="{$MOD.LBL_VIEW_AUDIT_TRAIL}" class="crmButton small save"></input>
+ {/if}
{if $CATEGORY eq 'Settings'}
{$DUPLICATE_BUTTON}
{/if}
Modified: vtigercrm/trunk/modules/Users/DetailView.php
==============================================================================
--- vtigercrm/trunk/modules/Users/DetailView.php (original)
+++ vtigercrm/trunk/modules/Users/DetailView.php Mon Jul 10 07:10:55 2006
@@ -160,6 +160,10 @@
}
+if(is_admin($current_user))
+ $smarty->assign("IS_ADMIN", true);
+else
+ $smarty->assign("IS_ADMIN", false);
$lead_tables = Array('vtiger_users','vtiger_user2role');
$tabid = getTabid("Users");
More information about the vtigercrm-commits
mailing list