[Fusionforge-commits] FusionForge branch Branch_5_2 updated. 8056465c7a8e4e1520d29db372ce31e11dc50c86

Franck VILLAUME nerville at fusionforge.org
Sat Apr 6 20:40:12 CEST 2013


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_2 has been updated
       via  8056465c7a8e4e1520d29db372ce31e11dc50c86 (commit)
      from  16624c5917bc3ba475a436b608101cf872f3e567 (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 8056465c7a8e4e1520d29db372ce31e11dc50c86
Author: Franck Villaume <franck.villaume at trivialdev.com>
Date:   Sat Apr 6 20:39:17 2013 +0200

    fix #447: setStatus does not check the correct user for permission, add missing default value in config files

diff --git a/src/common/include/Group.class.php b/src/common/include/Group.class.php
index 1d634dc..21e2817 100644
--- a/src/common/include/Group.class.php
+++ b/src/common/include/Group.class.php
@@ -669,7 +669,7 @@ class Group extends Error {
 	function setStatus(&$user, $status) {
 		global $SYS;
 
-		if (!forge_check_global_perm('approve_projects')) {
+		if (!forge_check_global_perm_for_user($user, 'approve_projects')) {
 			$this->setPermissionDeniedError();
 			return false;
 		}
diff --git a/src/etc/config.ini.d/defaults.ini b/src/etc/config.ini.d/defaults.ini
index 8cba756..905cc9f 100644
--- a/src/etc/config.ini.d/defaults.ini
+++ b/src/etc/config.ini.d/defaults.ini
@@ -47,6 +47,8 @@ mailman_path = "/usr/lib/mailman"
 news_group = 2
 peer_rating_group = 4
 project_registration_restricted = yes
+project_auto_approval = no
+project_auto_approval_user = admin
 sendmail_path = "/usr/sbin/sendmail"
 show_source = no
 stats_group = 3

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

Summary of changes:
 src/common/include/Group.class.php |    2 +-
 src/etc/config.ini.d/defaults.ini  |    2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list