cvs: pear /LiveUser_Admin/Perm Complex.php
| From: | Helgi �ormar �orbj�rnsson | Date: | Tue, 14 Dec 2004 17:21:48 +0000 |
| Subject: | cvs: pear /LiveUser_Admin/Perm Complex.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-27381@lists.php.net to get a copy of this message | ||
dufuz Tue Dec 14 12:21:48 2004 EDT
Modified files:
/pear/LiveUser_Admin/Perm Complex.php
Log:
making use of the new operator thing lukas just added to the query builder.
http://cvs.php.net/diff.php/pear/LiveUser_Admin/Perm/Complex.php?r1=1.9&r2=1.10&ty=u
Index: pear/LiveUser_Admin/Perm/Complex.php
diff -u pear/LiveUser_Admin/Perm/Complex.php:1.9 pear/LiveUser_Admin/Perm/Complex.php:1.10
--- pear/LiveUser_Admin/Perm/Complex.php:1.9 Tue Dec 14 06:55:51 2004
+++ pear/LiveUser_Admin/Perm/Complex.php Tue Dec 14 12:21:48 2004
@@ -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.9 2004/12/14 11:55:51 lsmith Exp $
+ * @version $Id: Complex.php,v 1.10 2004/12/14 17:21:48 dufuz Exp $
* @package LiveUser
*/
class LiveUser_Admin_Perm_Complex extends LiveUser_Admin_Perm_Medium
@@ -255,6 +255,9 @@
return false;
}
+ // Add right level filter that will be used to get user and group count.
+ $filters['right_level'] = array('op' => '<',
'value' => LIVEUSER_MAX_LEVEL);
+
$usercount = $this->_storage->selectOne('userrights',
'right_id', $filters, true);
if (!$usercount) {
return false;