[Fusionforge-commits] r15351 - branches/Branch_5_1/src/common/include

Julien HEYMAN jheyman at fusionforge.org
Wed Apr 18 14:45:55 CEST 2012


Author: jheyman
Date: 2012-04-18 14:45:54 +0200 (Wed, 18 Apr 2012)
New Revision: 15351

Modified:
   branches/Branch_5_1/src/common/include/Group.class.php
Log:
Delete fake group_join_request when you approve a project

Modified: branches/Branch_5_1/src/common/include/Group.class.php
===================================================================
--- branches/Branch_5_1/src/common/include/Group.class.php	2012-04-18 09:20:51 UTC (rev 15350)
+++ branches/Branch_5_1/src/common/include/Group.class.php	2012-04-18 12:45:54 UTC (rev 15351)
@@ -2627,6 +2627,13 @@
 		$this->normalizeAllRoles () ;
 		$this->activateUsers();
 
+		// Delete fake join request
+		if (USE_PFO_RBAC) {
+			foreach (get_group_join_requests ($this) as $gjr) {
+				$gjr->delete(true) ;
+			}
+		}
+
 		// Switch back to user preference
 		session_set_internal ($saved_session->getID()) ;
 		setup_gettext_from_context();




More information about the Fusionforge-commits mailing list