[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: admin editaccount.php,1.103.2.1,1.103.2.2
From: |
Dan Kuykendall <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: admin editaccount.php,1.103.2.1,1.103.2.2 |
Date: |
Tue, 08 Jan 2002 12:35:21 -0500 |
Update of /cvsroot/phpgroupware/admin
In directory subversions:/tmp/cvs-serv1096/admin
Modified Files:
Tag: Version-0_9_12-branch
editaccount.php
Log Message:
jengo fixed this. the permissions were being saved before the deletes were done
Index: editaccount.php
===================================================================
RCS file: /cvsroot/phpgroupware/admin/Attic/editaccount.php,v
retrieving revision 1.103.2.1
retrieving revision 1.103.2.2
diff -C2 -r1.103.2.1 -r1.103.2.2
*** editaccount.php 21 Aug 2001 00:51:17 -0000 1.103.2.1
--- editaccount.php 8 Jan 2002 17:35:19 -0000 1.103.2.2
***************
*** 255,268 ****
$apps->account_apps = Array(Array());
$apps_before = $apps->read_account_specific();
if ($_userData['account_permissions'])
{
! while($app = each($_userData['account_permissions']))
{
! if($app[1])
{
! $apps->add($app[0]);
! if(address@hidden || @$apps_before ==
False)
{
! $apps_after[] = $app[0];
}
}
--- 255,276 ----
$apps->account_apps = Array(Array());
$apps_before = $apps->read_account_specific();
+
+ // First, remove all there permissions before readding them
+ // This is if there permission was removed
+ while (is_array($apps_before) && list($app) =
each($apps_before))
+ {
+ $apps->delete($app);
+ }
+
if ($_userData['account_permissions'])
{
! while(list($app) =
each($_userData['account_permissions']))
{
! if ($app)
{
! $apps->add($app);
! if(address@hidden || @$apps_before ==
False)
{
! $apps_after[] = $app;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: admin editaccount.php,1.103.2.1,1.103.2.2,
Dan Kuykendall <address@hidden> <=