[Fusionforge-commits] FusionForge branch 6.0 updated. c5a26fd scm: fix access to repositories (give _scmro access to _scmrw users)

Sylvain Beucler beuc-inria at libremir.placard.fr.eu.org
Tue Jun 2 14:43:01 CEST 2015


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, 6.0 has been updated
       via  c5a26fd16764e9cde1fb782552dcae0d13838b97 (commit)
      from  2cd29b057028e4b2f6710745d4f620950f3f7106 (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 c5a26fd16764e9cde1fb782552dcae0d13838b97
Author: Sylvain Beucler <sylvain.beucler at inria.fr>
Date:   Tue Jun 2 14:42:16 2015 +0200

    scm: fix access to repositories (give _scmro access to _scmrw users)

diff --git a/src/common/include/system/pgsql.class.php b/src/common/include/system/pgsql.class.php
index 11c2924..c45f54d 100644
--- a/src/common/include/system/pgsql.class.php
+++ b/src/common/include/system/pgsql.class.php
@@ -503,7 +503,7 @@ FROM users
   JOIN pfo_role ON (pfo_user_role.role_id=pfo_role.role_id)
   LEFT JOIN role_project_refs ON (pfo_user_role.role_id=role_project_refs.role_id)
   JOIN nss_groups ON (pfo_role.home_group_id=nss_groups.group_id OR role_project_refs.group_id=nss_groups.group_id)
-  JOIN pfo_role_setting ON (pfo_user_role.role_id=pfo_role_setting.role_id AND (pfo_role_setting.ref_id=nss_groups.group_id) AND ((section_name='project_admin' AND perm_val=1) OR (section_name='scm' AND perm_val=1)))
+  JOIN pfo_role_setting ON (pfo_user_role.role_id=pfo_role_setting.role_id AND (pfo_role_setting.ref_id=nss_groups.group_id) AND ((section_name='project_admin' AND perm_val=1) OR (section_name='scm' AND perm_val>=1)))
 WHERE users.unix_status='A' AND nss_groups.gid > $2
 
 UNION

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

Summary of changes:
 src/common/include/system/pgsql.class.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/include/system/pgsql.class.php b/src/common/include/system/pgsql.class.php
index 11c2924..c45f54d 100644
--- a/src/common/include/system/pgsql.class.php
+++ b/src/common/include/system/pgsql.class.php
@@ -503,7 +503,7 @@ FROM users
   JOIN pfo_role ON (pfo_user_role.role_id=pfo_role.role_id)
   LEFT JOIN role_project_refs ON (pfo_user_role.role_id=role_project_refs.role_id)
   JOIN nss_groups ON (pfo_role.home_group_id=nss_groups.group_id OR role_project_refs.group_id=nss_groups.group_id)
-  JOIN pfo_role_setting ON (pfo_user_role.role_id=pfo_role_setting.role_id AND (pfo_role_setting.ref_id=nss_groups.group_id) AND ((section_name='project_admin' AND perm_val=1) OR (section_name='scm' AND perm_val=1)))
+  JOIN pfo_role_setting ON (pfo_user_role.role_id=pfo_role_setting.role_id AND (pfo_role_setting.ref_id=nss_groups.group_id) AND ((section_name='project_admin' AND perm_val=1) OR (section_name='scm' AND perm_val>=1)))
 WHERE users.unix_status='A' AND nss_groups.gid > $2
 
 UNION


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list