phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] api/class.acl_mgr.php, 1.1.2.7


From: nomail
Subject: [Phpgroupware-cvs] api/class.acl_mgr.php, 1.1.2.7
Date: Sun, 23 May 2004 17:14:00 -0000

Update of /api
Modified Files:
        Branch: proposal-branch
          class.acl_mgr.php

date: 2004/05/08 05:08:51;  author: jengo;  state: Exp;  lines: +7 -5

Log Message:
Fixed creating users not showing a permission list
=====================================================================
Index: api/class.acl_mgr.php
diff -u api/class.acl_mgr.php:1.1.2.6 api/class.acl_mgr.php:1.1.2.7
--- api/class.acl_mgr.php:1.1.2.6       Fri Apr 16 20:59:48 2004
+++ api/class.acl_mgr.php       Sat May  8 05:08:51 2004
@@ -310,8 +310,8 @@
                        $args->set('acl_check',true,'any');
                        $args = $args->get(func_get_args());
 
-                       $dbresult = $GLOBALS['phpgw']->db->Execute("select * 
from phpgw_acl_locations where loc_op not like '%.%.%' order by loc_title");
-                       while ($dbresult->EOF && $dbresult->movenext())
+                       $dbresult = $GLOBALS['phpgw']->db->execute("select * 
from phpgw_acl_locations where loc_op not like '%.%.%' order by loc_title");
+                       while (! $dbresult->EOF)
                        {
                                $has_access = false;
                                if (! $args['account_id'])
@@ -336,11 +336,13 @@
 
                                if ($has_access)
                                {
-                                       $result[] = array(
+                                       $result[] = array
+                                       (
                                                'op'    => 
$dbresult->fields['loc_op'],
                                                'title' => 
lang($dbresult->fields['loc_title'])
                                        );
                                }
+                               $dbresult->movenext();
                        }
 
                        return $result;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]