This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, Branch_5_3 has been updated
       via  4a5d04fabbf0e534e124d6796dbd0fe0a21e5430 (commit)
      from  5127e3486b997ae55b02ccb6fdc8e7258ebb8581 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4a5d04fabbf0e534e124d6796dbd0fe0a21e5430
Author: Roland Mas <[email protected]>
Date:   Wed May 14 16:35:18 2014 +0200

    Use =ANY(...) clause rather than IN (...)

diff --git a/src/common/include/RBAC.php b/src/common/include/RBAC.php
index cfe5045..19d89e0 100644
--- a/src/common/include/RBAC.php
+++ b/src/common/include/RBAC.php
@@ -917,8 +917,8 @@ abstract class BaseRole extends Error {
                // Direct query to avoid querying each project - especially for 
global roles
                foreach ($projects as $p)
                        $project_ids[] = $p->getID();
-               $res = db_query_params('SELECT group_artifact_id FROM 
artifact_group_list JOIN groups USING (group_id)'
-                                      . ' WHERE use_tracker=1 AND group_id IN 
('.implode(',', $project_ids).')', array());
+               $res = db_query_params('SELECT group_artifact_id FROM 
artifact_group_list JOIN groups USING (group_id) WHERE use_tracker=1 AND 
group_id=ANY($1)', 
+                                      
array(db_int_array_to_any_clause($project_ids)));
                while ($row = db_fetch_array($res)) {
                        $tid = $row['group_artifact_id'];
                        if (array_key_exists ('tracker', $this->perms_array)

-----------------------------------------------------------------------

Summary of changes:
 src/common/include/RBAC.php |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
FusionForge

_______________________________________________
Fusionforge-commits mailing list
[email protected]
http://lists.fusionforge.org/cgi-bin/mailman/listinfo/fusionforge-commits

Reply via email to