[Vtigercrm-commits] [vtiger-commits] r5695 - /vtigercrm/trunk/modules/Import/ImportButton.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Wed May 3 04:52:38 EDT 2006
Author: don
Date: Wed May 3 02:52:34 2006
New Revision: 5695
Log:
Removed the calling of permitted actions from session
Modified:
vtigercrm/trunk/modules/Import/ImportButton.php
Modified: vtigercrm/trunk/modules/Import/ImportButton.php
==============================================================================
--- vtigercrm/trunk/modules/Import/ImportButton.php (original)
+++ vtigercrm/trunk/modules/Import/ImportButton.php Wed May 3 02:52:34 2006
@@ -20,7 +20,8 @@
<table width="100%" cellpadding="6">
<tr>
-->
-<?php
+<?php
+require_once('include/utils/UserInfoUtil.php');
if ($_REQUEST['module'] == 'Products' ||
$_REQUEST['module'] == 'Contacts' ||
$_REQUEST['module'] == 'Potentials' ||
@@ -28,7 +29,7 @@
$_REQUEST['module'] == 'Leads')
{
$permissionData = $_SESSION['action_permission_set'];
- if($permissionData[$tabid]['5'] == 0)
+ if(isPermitted($_REQUEST['module'],'Import') == 0)
{
?>
<!--
@@ -54,7 +55,7 @@
if($_REQUEST['module'] != 'Activities')
{
$permissionData = $_SESSION['action_permission_set'];
- if($permissionData[$tabid]['6'] == 0)
+ if(isPermitted($_REQUEST['module'],'Export') == 'yes')
{
?>
<!--
More information about the vtigercrm-commits
mailing list