cvs: pear /LiveUser_Admin/Perm Complex.php Medium.php
| From: | Lukas Smith | Date: | Wed, 06 Apr 2005 16:30:20 +0000 |
| Subject: | cvs: pear /LiveUser_Admin/Perm Complex.php Medium.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-30982@lists.php.net to get a copy of this message | ||
lsmith Wed Apr 6 12:30:20 2005 EDT
Modified files:
/pear/LiveUser_Admin/Perm Complex.php Medium.php
Log:
- add makeRemoveFilter() when its clear that only one side of a relation is being used in a remove
http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Complex.php?r1=1.57&r2=1.58&ty=u
Index: pear/LiveUser_Admin/Perm/Complex.php
diff -u pear/LiveUser_Admin/Perm/Complex.php:1.57 pear/LiveUser_Admin/Perm/Complex.php:1.58
--- pear/LiveUser_Admin/Perm/Complex.php:1.57 Mon Mar 28 15:39:27 2005
+++ pear/LiveUser_Admin/Perm/Complex.php Wed Apr 6 12:30:17 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.57 2005/03/28 20:39:27 dufuz Exp $
+ * @version CVS: $Id: Complex.php,v 1.58 2005/04/06 16:30:17 lsmith Exp $
* @link http://pear.php.net/LiveUser_Admin
*/
@@ -354,6 +354,11 @@
*/
function removeArea($filters)
{
+ $filters = $this->_makeRemoveFilter($filters, 'area_id',
'getAreas');
+ if (!$filters) {
+ return $filters;
+ }
+
$result = $this->removeAreaAdmin($filters);
if ($result === false) {
return false;
http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Medium.php?r1=1.38&r2=1.39&ty=u
Index: pear/LiveUser_Admin/Perm/Medium.php
diff -u pear/LiveUser_Admin/Perm/Medium.php:1.38 pear/LiveUser_Admin/Perm/Medium.php:1.39
--- pear/LiveUser_Admin/Perm/Medium.php:1.38 Thu Mar 24 11:32:47 2005
+++ pear/LiveUser_Admin/Perm/Medium.php Wed Apr 6 12:30:17 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.38 2005/03/24 16:32:47 lsmith Exp $
+ * @version $Id: Medium.php,v 1.39 2005/04/06 16:30:17 lsmith Exp $
* @link http://pear.php.net/LiveUser_Admin
*/
@@ -296,6 +296,11 @@
*/
function removeRight($filters)
{
+ $filters = $this->_makeRemoveFilter($filters, 'right_id',
'getRights');
+ if (!$filters) {
+ return $filters;
+ }
+
$result = $this->revokeGroupRight($filters);
if ($result === false) {
return false;