cvs: pear /LiveUser_Admin/Perm Complex.php Medium.php

From: Date: Fri, 11 Mar 2005 11:10:22 +0000
Subject: cvs: pear /LiveUser_Admin/Perm Complex.php Medium.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-30195@lists.php.net to get a copy of this message
lsmith Fri Mar 11 06:10:22 2005 EDT Modified files: /pear/LiveUser_Admin/Perm Complex.php Medium.php Log: - fixed constructor ordering that would lead to selectable table property being overwritten http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Complex.php?r1=1.52&r2=1.53&ty=u Index: pear/LiveUser_Admin/Perm/Complex.php diff -u pear/LiveUser_Admin/Perm/Complex.php:1.52 pear/LiveUser_Admin/Perm/Complex.php:1.53 --- pear/LiveUser_Admin/Perm/Complex.php:1.52 Fri Mar 11 05:40:38 2005 +++ pear/LiveUser_Admin/Perm/Complex.php Fri Mar 11 06:10:21 2005 @@ -57,7 +57,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version CVS: $Id: Complex.php,v 1.52 2005/03/11 10:40:38 lsmith Exp $ + * @version CVS: $Id: Complex.php,v 1.53 2005/03/11 11:10:21 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -98,10 +98,10 @@ */ function LiveUser_Admin_Perm_Complex() { + $this->LiveUser_Admin_Perm_Medium(); $this->selectable_tables['getRights'][] = 'right_implied'; $this->selectable_tables['getAreas'][] = 'area_admin_areas'; $this->selectable_tables['getGroups'][] = 'group_subgroups'; - $this->LiveUser_Admin_Perm_Medium(); } /** http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Medium.php?r1=1.35&r2=1.36&ty=u Index: pear/LiveUser_Admin/Perm/Medium.php diff -u pear/LiveUser_Admin/Perm/Medium.php:1.35 pear/LiveUser_Admin/Perm/Medium.php:1.36 --- pear/LiveUser_Admin/Perm/Medium.php:1.35 Mon Mar 7 04:05:16 2005 +++ pear/LiveUser_Admin/Perm/Medium.php Fri Mar 11 06:10:21 2005 @@ -57,7 +57,7 @@ * @author Bjoern Kraus <krausbn@php.net> * @copyright 2002-2005 Markus Wolff * @license http://www.gnu.org/licenses/lgpl.txt - * @version $Id: Medium.php,v 1.35 2005/03/07 09:05:16 dufuz Exp $ + * @version $Id: Medium.php,v 1.36 2005/03/11 11:10:21 lsmith Exp $ * @link http://pear.php.net/LiveUser_Admin */ @@ -98,10 +98,10 @@ */ function LiveUser_Admin_Perm_Medium() { + $this->LiveUser_Admin_Perm_Simple(); $this->selectable_tables['getUsers'][] = 'groupusers'; $this->selectable_tables['getRights'][] = 'grouprights'; $this->selectable_tables['getGroups'] = array('groups', 'groupusers', 'grouprights', 'rights', 'translations'); - $this->LiveUser_Admin_Perm_Simple(); } /** @@ -195,7 +195,8 @@ if ($count > 0) { $this->_stack->push( LIVEUSER_ADMIN_ERROR, 'exception', - array('msg' => 'This group with id '.$data['group_id'].' has already been granted the right id '.$data['right_id']) + array('msg' => 'This group with id '.$data['group_id']. + ' has already been granted the right id '.$data['right_id']) ); return false; } @@ -363,7 +364,6 @@ $method = 'getRights'; } elseif ($field == 'perm_user_id') { $method = 'getUsers'; - $params['subgroups'] = false; } else { break; }

« previous php.pear.cvs (#30195) next »