[Vtigercrm-commits] [vtiger-commits] r4357 - /vtigercrm/trunk/include/utils/utils.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Mar 21 02:42:43 EST 2006
Author: don
Date: Tue Mar 21 00:42:35 2006
New Revision: 4357
Log:
modified getQuickCreate()
Modified:
vtigercrm/trunk/include/utils/utils.php
Modified: vtigercrm/trunk/include/utils/utils.php
==============================================================================
--- vtigercrm/trunk/include/utils/utils.php (original)
+++ vtigercrm/trunk/include/utils/utils.php Tue Mar 21 00:42:35 2006
@@ -1058,21 +1058,15 @@
function getQuickCreate($tabid,$actionid)
{
+ $module=getTabModuleName($tabid);
+ $actionname=getActionname($actionid);
$QuickCreateForm= 'true';
- $profile_id = $_SESSION['authenticated_user_profileid'];
- $tab_per_Data = getAllTabsPermission($profile_id);
-
- $permissionData = $_SESSION['action_permission_set'];
-
- if($tab_per_Data[$tabid] !=0)
- {
+ $perr=isPermitted($module,$actionname);
+ if($perr = 'no')
+ {
$QuickCreateForm= 'false';
- }
- if($permissionData[$tabid][1] !=0)
- {
- $QuickCreateForm= 'false';
- }
+ }
return $QuickCreateForm;
}
More information about the vtigercrm-commits
mailing list