cvs: pear /LiveUser_Admin/Perm Complex.php

From: Date: Tue, 18 Jan 2005 21:27:45 +0000
Subject: cvs: pear /LiveUser_Admin/Perm Complex.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-28673@lists.php.net to get a copy of this message
dufuz Tue Jan 18 16:27:45 2005 EDT Modified files: /pear/LiveUser_Admin/Perm Complex.php Log: getAreas can now fetch info from area_admin_areas, fixed a bug and a typo in error msg in addAreaAdmin, removeAreaAdmin now uses perm_user_id instead of area_id http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Complex.php?r1=1.39&r2=1.40&ty=u Index: pear/LiveUser_Admin/Perm/Complex.php diff -u pear/LiveUser_Admin/Perm/Complex.php:1.39 pear/LiveUser_Admin/Perm/Complex.php:1.40 --- pear/LiveUser_Admin/Perm/Complex.php:1.39 Mon Jan 17 13:57:12 2005 +++ pear/LiveUser_Admin/Perm/Complex.php Tue Jan 18 16:27:45 2005 @@ -36,7 +36,7 @@ * @author Christian Dickmann <dickmann@php.net> * @author Markus Wolff <wolff@21st.de> * @author Matt Scifo <mscifo@php.net> - * @version $Id: Complex.php,v 1.39 2005/01/17 18:57:12 dufuz Exp $ + * @version $Id: Complex.php,v 1.40 2005/01/18 21:27:45 dufuz Exp $ * @package LiveUser */ class LiveUser_Admin_Perm_Complex extends LiveUser_Admin_Perm_Medium @@ -51,6 +51,7 @@ function LiveUser_Admin_Perm_Complex(&$confArray) { $this->selectable_tables['getRights'][] = 'right_implied'; + $this->selectable_tables['getAreas'][] = 'area_admin_areas'; $this->LiveUser_Admin_Perm_Medium($confArray); } @@ -228,15 +229,15 @@ 'perm_user_id' => $data['perm_user_id'] ) ); - $result = parent::getRight($params); + $result = parent::getUsers($params); if ($result === false) { return $result; } - if ($result['perm_type'] < 3) { + if ($result[0]['perm_type'] < 3) { $this->_stack->push( LIVEUSER_ADMIN_ERROR, 'exception', - array('msg' => 'The user doesn\' have sufficient rights') + array('msg' => 'The user doesn\'t have sufficient rights') ); return false; }

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