phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] [19036] fix the way of passing apps for acls, this is


From: Caeies
Subject: [Phpgroupware-cvs] [19036] fix the way of passing apps for acls, this is not the keys, but the core of the array.
Date: Wed, 21 Jan 2009 18:35:28 +0000

Revision: 19036
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=phpgroupware&revision=19036
Author:   Caeies
Date:     2009-01-21 18:35:28 +0000 (Wed, 21 Jan 2009)

Log Message:
-----------
fix the way of passing apps for acls, this is not the keys, but the core of the 
array. fix the delete account user

Modified Paths:
--------------
    core/trunk/admin/inc/class.boaccounts.inc.php

Modified: core/trunk/admin/inc/class.boaccounts.inc.php
===================================================================
--- core/trunk/admin/inc/class.boaccounts.inc.php       2009-01-21 18:34:05 UTC 
(rev 19035)
+++ core/trunk/admin/inc/class.boaccounts.inc.php       2009-01-21 18:35:28 UTC 
(rev 19036)
@@ -186,12 +186,12 @@
                        {
                                $new_group->id = $id;
                                $id = 
$GLOBALS['phpgw']->accounts->create($new_group, $values['account_user'],
-                                                                               
                                array(), $values['account_apps']);
+                                                                               
                                array(), array_keys($values['account_apps']));
                        }
                        else //edit group
                        {
                                
$GLOBALS['phpgw']->accounts->update_group($new_group, $values['account_user'],
-                                                                               
                                $values['account_apps']);
+                                                                               
                                array_keys($values['account_apps']));
                        }
                }
 
@@ -303,7 +303,7 @@
 
                        $groups = $values['account_groups'];
                        $acls = array();
-                       $apps = $values['account_permissions'];
+                       $apps = is_array($values['account_permissions']) ? 
array_keys($values['account_permissions']) : array();
                        unset($values['account_groups'], 
$values['account_permissions']);
 
 
@@ -373,7 +373,7 @@
                                $GLOBALS['phpgw']->redirect_link('index.php',
                                                array('menuaction' => 
'admin.uiaccounts.list_users'));
                        }
-                       return $GLOBALS['phpgw']->accounts->delete($account_id);
+                       return $GLOBALS['phpgw']->accounts->delete($id);
                }
 
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]