[Vtigercrm-commits] [vtiger-commits] r4285 - in /vtigercrm/trunk: Smarty/templates/OrgSharingDetailView.tpl modules/Users/OrgSharingEditView.php modules/Users/SaveSharingRule.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Sat Mar 18 00:26:12 EST 2006
Author: saraj
Date: Fri Mar 17 22:26:05 2006
New Revision: 4285
Log:
issue in security UI has been fixed
Modified:
vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl
vtigercrm/trunk/modules/Users/OrgSharingEditView.php
vtigercrm/trunk/modules/Users/SaveSharingRule.php
Modified: vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl
==============================================================================
--- vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl (original)
+++ vtigercrm/trunk/Smarty/templates/OrgSharingDetailView.tpl Fri Mar 17 22:26:05 2006
@@ -129,11 +129,6 @@
<!-- Start of Module Display -->
{foreach key=modulename item=details from=$MODSHARING}
<div align="right"><a href="#">Go to Top</a></div>
- <form action="index.php" method="post" name="{$modulename}" id="form">
- <input type="hidden" name="module" value="Users">
- <input type="hidden" name="action" value="CreateSharingRule">
- <input type="hidden" name="sharing_module" value="{$modulename}">
- <input type="hidden" name="mode" value="create">
{if $details.0 neq ''}
<table class="orgTab" cellpadding="0" cellspacing="0">
<tbody>
@@ -172,7 +167,7 @@
<img src="{$IMAGE_PATH}arrow.jpg" align="absmiddle">
<b>{$modulename}</b>
</td>
- <td align="right"><input title="New" class="small" type="submit" name="Create" value="Add Privileges"></td>
+ <td align="right"><input title="New" class="small" type="button" name="Create" value="Add Privileges" onClick="callEditDiv('{$modulename}')"></td>
</tr>
<tr>
<td colspan="2" style="padding: 20px;" bgcolor="#ffffff" align="center">
@@ -185,7 +180,6 @@
</table>
<!-- END OF NO DATA -->
{/if}
- </form>
<br><br>
{/foreach}
</td>
Modified: vtigercrm/trunk/modules/Users/OrgSharingEditView.php
==============================================================================
Binary files - no diff available.
Modified: vtigercrm/trunk/modules/Users/SaveSharingRule.php
==============================================================================
--- vtigercrm/trunk/modules/Users/SaveSharingRule.php (original)
+++ vtigercrm/trunk/modules/Users/SaveSharingRule.php Fri Mar 17 22:26:05 2006
@@ -15,18 +15,19 @@
$sharing_module=$_REQUEST['sharing_module'];
$tabid=getTabid($sharing_module);
-$share_entity_type = $_REQUEST['memberType'];
-$to_entity_type = $_REQUEST['share_memberType'];
-$share_entity_id=$_REQUEST['availList'];
-$to_entity_id=$_REQUEST['share_availList'];
-$module_sharing_access=$_REQUEST[$sharing_module.'_access'];
+$sharedby = explode('::',$_REQUEST[$sharing_module.'_share']);
+$sharedto = explode('::',$_REQUEST[$sharing_module.'_access']);
+$share_entity_type = $sharedby[0];
+$to_entity_type = $sharedto[0];
+
+$share_entity_id= $sharedby[1];
+$to_entity_id=$sharedto[1];
+
+$module_sharing_access=$_REQUEST['share_memberType'];
+
$mode=$_REQUEST['mode'];
-/*
-echo '<BR>';
-echo $share_entity_type;
-echo '<BR>';
-echo $to_entity_type;
-*/
+
+
$relatedShareModuleArr=getRelatedSharingModules($tabid);
if($mode == 'create')
@@ -37,7 +38,7 @@
foreach($relatedShareModuleArr as $reltabid=>$ds_rm_id)
{
$reltabname=getTabModuleName($reltabid);
- $relSharePermission=$_REQUEST[$reltabname.'_access'];
+ $relSharePermission=$_REQUEST[$reltabname.'_accessopt'];
addRelatedModuleSharingPermission($shareId,$tabid,$reltabid,$relSharePermission);
}
@@ -50,7 +51,7 @@
foreach($relatedShareModuleArr as $reltabid=>$ds_rm_id)
{
$reltabname=getTabModuleName($reltabid);
- $relSharePermission=$_REQUEST[$reltabname.'_access'];
+ $relSharePermission=$_REQUEST[$reltabname.'_accessopt'];
updateRelatedModuleSharingPermission($shareId,$tabid,$reltabid,$relSharePermission);
}
}
More information about the vtigercrm-commits
mailing list