From ecb54c6800b90efcfd92d76e817ea4375f277408 Mon Sep 17 00:00:00 2001 From: skeeter Date: Sun, 18 Mar 2001 18:31:17 +0000 Subject: [PATCH] I'm thinking this is the way it should be. Resetting the variable with each iteration through for the individual records. --- phpgwapi/inc/class.acl.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpgwapi/inc/class.acl.inc.php b/phpgwapi/inc/class.acl.inc.php index d0e54d0068..5b85a05a73 100644 --- a/phpgwapi/inc/class.acl.inc.php +++ b/phpgwapi/inc/class.acl.inc.php @@ -379,6 +379,7 @@ It should use the values in the $this->data $rights = 0; if ($this->db->num_rows() == 0 ){ return False; } while ($this->db->next_record()) { + $rights = 0; $rights |= $this->db->f('acl_rights'); if (!!($rights & $required) == True){ $accounts[] = intval($this->db->f('acl_account'));