[Vtigercrm-commits] [vtiger-commits] r7384 - /vtigercrm/trunk/Smarty/templates/DisplayFields.tpl

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Jun 21 10:27:14 EDT 2006


Author: richie
Date: Wed Jun 21 08:27:05 2006
New Revision: 7384

Log:
now the logged in admin user cannot change him as non admin

Modified:
    vtigercrm/trunk/Smarty/templates/DisplayFields.tpl

Modified: vtigercrm/trunk/Smarty/templates/DisplayFields.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/DisplayFields.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/DisplayFields.tpl Wed Jun 21 08:27:05 2006
@@ -470,7 +470,7 @@
 			<td width="20%" class="dvtCellLabel" align=right>
 				{$fldlabel}
 			</td>
-				{if $secondvalue eq 1}
+				{if ($secondvalue eq 1 && $CURRENT_USERID != $smarty.request.record) || ($MODE == 'create')}
 					{assign var="disable_status" value=""}
 				{else}
 					{assign var="disable_status" value="disabled"}





More information about the vtigercrm-commits mailing list